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.

Add a .d.ts file so Typescript users can easily use this library as well.

See original GitHub issue

This 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:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
Carl-Fostercommented, Feb 21, 2018

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.

5reactions
Carl-Fostercommented, Mar 14, 2018

The SDK now has types added in via @types/stellar-sdk! Happy typing everyone 😃

Read more comments on GitHub >

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

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