You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before I a .d.ts file was only as a way to document a library/environment.
So each file looked like this:
/**
* @module foo:bar
* This module can be imported to do something
*/
export function doSomething(a: any): void;
This resulted in the comment above being included and the page being called foo:bar.
However know I want to use those .d.ts also as reference in Typescript, so I need to wrap the whole file into a declare module:
/**
* @module foo:bar
* This module can be imported to do something
*/
declare module 'foo:bar'{
export function doSomething(a: any): void;
}
now however the page is title as (Module +) filename and the comment isn't included either.
How can I handle this?
The text was updated successfully, but these errors were encountered:
Search terms
module, declare module,
Question
Before I a .d.ts file was only as a way to document a library/environment.
So each file looked like this:
This resulted in the comment above being included and the page being called
foo:bar
.However know I want to use those .d.ts also as reference in Typescript, so I need to wrap the whole file into a
declare module
:now however the page is title as (Module +) filename and the comment isn't included either.
How can I handle this?
The text was updated successfully, but these errors were encountered: