React-window: Publish .d.ts files

Created on 2 Apr 2019  路  6Comments  路  Source: bvaughn/react-window

Any chance you could add a typescript .d.ts file to the dist folder?

Most helpful comment

If something is not working correctly with @types/react-window or is out of date, feel free to either submit an issue or (even better) a PR to the DefinitelyTyped repo:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-window/index.d.ts

@bvaughn has already expressed that he's not willing to maintain type definitions for TypeScript in this repo https://github.com/bvaughn/react-window/pull/52#issuecomment-419649277.

All 6 comments

Just install @types/react-window package from DefinitelyTyped

I have but unfortunately they don't match the actual API. I was hoping that by getting a d.ts file published here then any changes to react-window would be automatically reflected in the associated d.ts file.

I see, they are working fine for me so far

The direction prop is missing from GridProps and the layout prop is missing from ListProps. I have to support RTL languages so the direction prop is important to me.

If something is not working correctly with @types/react-window or is out of date, feel free to either submit an issue or (even better) a PR to the DefinitelyTyped repo:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-window/index.d.ts

@bvaughn has already expressed that he's not willing to maintain type definitions for TypeScript in this repo https://github.com/bvaughn/react-window/pull/52#issuecomment-419649277.

Was this page helpful?
0 / 5 - 0 ratings