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 version / definition files

See original GitHub issue

Hi, 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:open
  • Created 4 years ago
  • Reactions:3
  • Comments:26 (18 by maintainers)

github_iconTop GitHub Comments

4reactions
alvaromartmartcommented, Dec 24, 2019

@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

cd types/openseadragon
npm run lint openseadragon

and can be compiled

tsc

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.

3reactions
alvaromartmartcommented, Apr 24, 2020

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.

Read more comments on GitHub >

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

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