jamestalmage / supports-hyperlinks

Detect whether a terminal emulator supports hyperlinks
MIT License
54 stars 13 forks source link

Adds a d.ts file generated from the JS #6

Closed orta closed 4 years ago

orta commented 4 years ago

Hello there!

This adds TypeScript support for consumers, with no changes to your project. The command in the scripts will automatically generate a d.ts file which corresponds to the interface of the module:

export function supportsHyperlink(stream: any): boolean;
export declare const stdout: boolean;
export declare const stderr: boolean;