react-images
react-images copied to clipboard
No TS types in build
yarn add react-images
v1.1.0-beta.2
inspect node_modules/react-images, there are no types even though it references ./index.d.ts
please can you release another version to NPM :)
Can you check if it's present in v1.1.0-beta.3 which I just published?
Thanks!
Still not there :(
All i have is this...

Something with your publish step is not including all the files, potentially in your package.json you should include the declation file in the "files" array..
"files": [
"dist",
"lib",
"src",
"index.d.ts"
],
Sorry! I've never done typings before so this is all brand new to me!
It seems it's already in there:
"files": [
"dist",
"lib",
"src",
"./index.d.ts"
],
FYI: My first instinct was to reach for @types/react-images
...but that only exports a Lightbox
and Image
(missing both Modal
and ModalGateway
)
Believe I found it, the other entry in package.json
...
SHOULD BE: "types": "index.d.ts",
CURRENTLY: "types": "./index.d.ts",