Skip to content

Commit

Permalink
fix(groq): provide tsdoc for groq template literal function
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Dec 21, 2022
1 parent afcc2f5 commit f9520b2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/groq/src/groq.ts
@@ -1,3 +1,13 @@
/**
* Pass-through groq template tag. This is a no-op, but it helps editor integrations
* understand that a string represents a GROQ query in order to provide syntax highlighting
* and other features.
*
* @param strings - Template string parts
* @param keys - Template string keys
* @returns The same string as the input
* @public
*/
export default function groq(strings: TemplateStringsArray, ...keys: any[]): string {
const lastIndex = strings.length - 1
return (
Expand Down

1 comment on commit f9520b2

@vercel
Copy link

@vercel vercel bot commented on f9520b2 Dec 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-studio – ./

test-studio-git-next.sanity.build
test-studio.sanity.build

Please sign in to comment.