how to upload and create @type/myLibrary for a JS library

in short:

I have a javascript library for which I have already create the d.ts file what I cannot achieve is how to make it install with the @type/*

details

The repository I am trying to include to my project is https://github.com/thesunlover/javascript-blowfish

I already uploaded it the https://www.npmjs.com/ and I am already installing it via npm install .

My problem is that I don't know how to create the npm install @types/javascript-blowfish to work so that the command executes properly

should I upload the same repository as typings or I should change something in the package.json?

Upvotes: 1

Views: 1633

Answers (1)

Ryan Cavanaugh
Ryan Cavanaugh

Reputation: 221044

@types packages are sourced from https://github.com/DefinitelyTyped/DefinitelyTyped

You can upload your definition file to DefinitelyTyped and it will be automatically published to @types once merged into the master branch.

Upvotes: 1

Related Questions