user2331095
user2331095

Reputation: 6707

How to add @types dependences in DefinitelyTyped packages?

My package in DefinitelyTyped should dependence on @types/webvr-api. However, there is no package.json in DefinitelyTyped. Here is the link: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/playcanvas

How can I add @types/webvr-api for my package ?

Upvotes: 0

Views: 256

Answers (1)

artem
artem

Reputation: 51579

You can use /// <reference types="..." /> directive, you can find plenty examples with this search, like this one in riotjs-render.d.ts

/// <reference types="jquery" />

Upvotes: 1

Related Questions