UNPKG

@types/node-abi

Version:
37 lines (29 loc) 1.18 kB
# Installation > `npm install --save @types/node-abi` # Summary This package contains type definitions for node-abi (https://github.com/lgeiger/node-abi#readme). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-abi. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-abi/index.d.ts) ````ts 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 | null, runtime?: Runtime): string; export function _getNextTarget(runtime: Runtime, targets?: Target[]): string | null; ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 09:09:39 GMT * Dependencies: none # Credits These definitions were written by [Florian Keller](https://github.com/ffflorian).