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 Definition Files

See original GitHub issue

What kind of issue is this? (put ‘x’ between the square brackets)


I’d like to add a Typescript definition file for use by consumers. I’ve started one here.

Three questions:

  • Is this a PR you’re open to?
  • The definition file is incomplete; do you mind if I submit the PR in the known incomplete state and collect feedback and revisions?
  • I didn’t include any methods with an underscore prefix, believing that they’re part of the internal API. Should they be included for consumers?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
marcandrecommented, Apr 18, 2017

@frederikprijck: anyone is more than welcome to provide a PR for this. requirementsAndField could be as you describe, probably, but one of the possibility is a plain object, or an array of (string | number | ...). Not sure that would be much more restrictive than any

0reactions
robbradleyrepocommented, Sep 13, 2018

@richseviora Thanks and aps for not replying earlier.

@marcandre Has there been any more interest on making this happen? Truth be told I’ve spent hours working on a solution but haven’t struck gold with this yet but I’m extremely keen to make it happen.

Just being able to import Parsley into Typescript alone would be something…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - Introduction - TypeScript
The Declaration Files section is designed to teach you how to write a high-quality TypeScript Declaration File. We need to assume basic familiarity...
Read more >
A quick introduction to “Type Declaration” files and adding ...
A Type Declaration or Type Definition file is a TypeScript file but with .d.ts filename extension. So what so special about these Type ......
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 >
How to generate TypeScript definition file from any .js file?
A TypeScript definition file or a type declaration file is any TypeScript file that has the .d.ts filename extension. These files are only ......
Read more >
What is a “.d.ts” file in TypeScript? - Ohans Emmanuel's Blog
d.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 >

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