mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
800 B
TypeScript
23 lines
800 B
TypeScript
// Type definitions for node-abi 2.10
|
|
// Project: https://github.com/lgeiger/node-abi#readme
|
|
// Definitions by: Florian Keller <https://github.com/ffflorian>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export type Runtime = 'electron' | 'node' | 'node-webkit';
|
|
export interface Target {
|
|
abi: string;
|
|
lts: boolean;
|
|
runtime: Runtime;
|
|
target: string;
|
|
}
|
|
|
|
export let additionalTargets: Target[];
|
|
export let allTargets: Target[];
|
|
export let deprecatedTargets: Target[];
|
|
export let futureTargets: Target[];
|
|
export let supportedTargets: Target[];
|
|
|
|
export function getAbi(target: string, runtime?: Runtime): string;
|
|
export function getTarget(abi?: string, runtime?: Runtime): string;
|
|
export function _getNextTarget(runtime: Runtime, targets?: Target[]): string | null;
|