Update README, dependencies, and migrate to TS
This commit is contained in:
@@ -12,7 +12,7 @@ const client = createClient({
|
||||
*
|
||||
* @param {String} query the GROQ query from Sanity CMS
|
||||
*/
|
||||
export async function getFromCMS(query) {
|
||||
export async function getFromCMS(query: string) {
|
||||
return await client.fetch(query);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user