Typescript version / definition files
See original GitHub issueHi, I was wondering if there are any plans to eventually release a typescript version of OpenSeadragon, or at least release a .d.ts definition file. I’ve found a few mentions to this topic in #456 but it appears no one is working on it.
In case anyone is interested, I started my own definition file, which you can find in this repo: https://github.com/alvaromartmart/types-openseadragon Bear in mind it is not complete and is based on the official documentation of v. 2.4.0 of OpenseaDragon. If anyone is interested in collaborating, please let me know!
Whenever it is stable I would like to publish it to the DefinitelyTyped repo or as an npm package so anyone can install it as @types/openseadragon
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:26 (18 by maintainers)
Top Results From Across the Web
Documentation - Type Declarations - TypeScript
TypeScript includes declaration files for all of the standardized built-in APIs available in JavaScript runtimes. This includes things like methods and ...
Read more >A quick introduction to “Type Declaration” files and adding ...
In this lesson, we are going to take a closer look at type declaration files which are one of the key ingredients of...
Read more >Generating TypeScript Definition Files from JavaScript
To accomplish that, you can publish Type Declaration files ( *.d.ts )in the root directory of the package you are publishing. TypeScript and ......
Read more >TypeScript Programming with Visual Studio Code
You can test your install by checking the version. ... VS Code provides IntelliSense for individual TypeScript files as well as TypeScript tsconfig.json ......
Read more >How to get TypeScript definitions file for a particular version of ...
ts file, a comment in the first line states the version of compatible JQuery. npm install @types/jquery@1.x will get you JQuery 1.x definitions....
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
@kristinruben I’ve created an
openseadragon
branch in my DefinitelyTyped fork with the intention of preparing the PR from there.It’s already passing the linting enforced by
DefinitelyTyped
and can be compiled
So it’s almost ready to go, the only thing is, the test file is almost empty. If you can come up with a couple of tests -keep in mind that they’re not ran, only type-checked- feel free to add them to
openseadragon-tests.ts
.Ok, i’ts already been published: https://www.npmjs.com/package/@types/openseadragon
It still doesn’t appear on search results, though. I guess they have some sort of cache.