treefarmstudio / astro-sanity

This is a helper package to integrate Astro and Sanity
https://www.npmjs.com/package/astro-sanity
MIT License
102 stars 10 forks source link

Missing Type Definitions #13

Closed TaraBryn closed 1 year ago

TaraBryn commented 1 year ago

Code:

import { useSanityClient } from "astro-sanity";

Error:

"Cannot find module 'astro-sanity' or its corresponding type declarations.ts(2307)"

Versions

Astro Version: 1.9.0 astro-sanity version: 1.1.2

Minimum reproducible example:

https://codesandbox.io/p/sandbox/interesting-beaver-49l53r?file=%2Fsrc%2Fpages%2Findex.astro&selection=%5B%7B%22endColumn%22%3A29%2C%22endLineNumber%22%3A14%2C%22startColumn%22%3A4%2C%22startLineNumber%22%3A14%7D%5D

ckt1031 commented 1 year ago

image Yeah, dts are missing

ehowey commented 1 year ago

Also commenting about this one - let us know if we can help at all!

jaydanurwin commented 1 year ago

Closing this as it should now resolved in v1.1.3. Thanks again @gksander!