TypeScript type definitions
See original GitHub issueI love this library. Would it be possible to include TypeScript type definitions? This should be as simple as including a file named index.d.ts
in the package and (optionally) adding the corresponding "types": "index.d.ts"
line to the package.json.
I am attaching a rough and essentially simple draft of the type definitions for the library as of today: https://gist.github.com/sgoll/bf270de030d339215f4964dbd50efc28
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Documentation - Type Declarations - TypeScript
Built-in Type Definitions ... TypeScript includes declaration files for all of the standardized built-in APIs available in JavaScript runtimes. This includes ...
Read more >Surviving the TypeScript Ecosystem — Part 4 - Medium
The solution is to make a type definition file. A type definition file is a file that ends in “.d.ts”. It is a...
Read more >The repository for high quality TypeScript type definitions.
The repository for high quality TypeScript type definitions. - GitHub - DefinitelyTyped/DefinitelyTyped: The repository for high quality TypeScript type ...
Read more >Typescript Typings: The Complete Guide: @types Compiler ...
The @types scope package contains type definitions for a lot of libraries, like Express, Sequelize, JQuery, and many others. So definitively ...
Read more >TypeScript — Type Declaration Files | by Makesh Kumar
Type declaration files are the files with d.ts extension, where types were declared via interface or type . These declaration files have no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Are there any plans to add these type definitions?! I also really love this icon set, but it would even be more awesome with typing 😄
@sgoll ahhh that makes sense. thanks for explaining it
@carmelopullara I don’t think it requires modding the build script–it should just require including an
index.d.ts
file in the project root (or maybe indist
?), but I will defer to someone more well-versed in TS than i am.