Files
meteor/tools/index.d.ts
2019-07-26 09:21:23 -04:00

21 lines
566 B
TypeScript

export {}
declare global {
interface JSON {
// The ES5 library fails to allow the input parameter to be a Buffer.
parse(input: Buffer | string, reviver?: (this: any, key: string, value: any) => any): any;
}
interface Promise<T> {
// This is an incomplete list of methods added to Promise.prototype by the
// meteor-promise npm package. TODO Eventually these declarations should be
// moved into that package.
await: () => T;
}
interface Function {
// func-utils.ts makes usage of this feature
displayName?: string;
}
}