Add a .d.ts file so Typescript users can easily use this library as well.
See original GitHub issueThis project really would benefit from a Typescript .d.ts
file so devs can easily interact with the stellar sdk in a type-safe manner using Typescript.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Documentation - Creating .d.ts Files from .js files - TypeScript
Run the TypeScript compiler to generate the corresponding d.ts files for JS files; (optional) Edit your package.json to reference the types. Adding TypeScript....
Read more >What is a “.d.ts” file in TypeScript? | by Ohans Emmanuel
ts files are called type declaration files. They exist for one purpose only: to describe the shape of an existing module and they...
Read more >How do you produce a .d.ts "typings" definition file from an ...
When creating your own library, you can can create *.d.ts files by using the tsc (TypeScript Compiler) command like so: (assuming you're building...
Read more >lib.d.ts - TypeScript Deep Dive - Gitbook
A special declaration file lib.d.ts ships with every installation of TypeScript. This file contains the ambient declarations for various common JavaScript ...
Read more >Types and Type Declarations | Manual - Deno
js , but that means my code won't be as well type checked as if TypeScript was considering the mod.d.ts file in place...
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
I’ve written a declaration file for this in a local project. Since this isn’t a Typescript project, it’ll be best to submit this to the DefinitelyTyped project. I’ll submit a PR there and reference this.
The SDK now has types added in via
@types/stellar-sdk
! Happy typing everyone 😃