question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeScript type definitions

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mrcrazyleecommented, Apr 15, 2018

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 😄

0reactions
brandonmpcommented, Apr 20, 2018

@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 in dist?), but I will defer to someone more well-versed in TS than i am.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found