Closed ryan-codingintrigue closed 2 years ago
It's manually .npmignore
d here; thus making the package.json typings
field unworking.
https://github.com/prismicio/prismic-reactjs/commit/ff8a1c5a8e798a2b4e69024a1e79dc20fe2841bd @cyrilchapon when will this be released?
I have no clue my friend; just quickly PRed this to get this done.
@ohlr ; hum; it's live actually.
ah sorry I only looked at the releases here on github which are not actively maintained
Any update on this? I am seeing the typings/index.d.ts
file in the actual node modules package but my project still isn't recognizing it:
Could not find a declaration file for module 'prismic-reactjs'
On v1.3.1
.
Also, FWIW, upon inspection of the file, Typescript is complaining about a lot of errors. I'm getting no less than 23 errors.
Examples:
Ahh... seeing now that this is directly related to #62 and #61.
Hey everyone, I know this is an old issue, but here's a quick update.
@prismicio/react
v2 was just published and is now written completely in TypeScript. Going forward, all types will be maintained alongside the source code and in @prismicio/types
.
Thanks for your feedback!
The
typings
folder appears to be missing from the published NPM package:https://unpkg.com/browse/prismic-reactjs@1.3.0/
Not sure if this is intentional or not, given that it's in the
package.json
seems like this might me a mistake...