mirror of https://github.com/espruino/BangleApps
12 lines
286 B
TypeScript
12 lines
286 B
TypeScript
// Required for TypeScript to work properly
|
|
interface NewableFunction extends Function {}
|
|
interface CallableFunction extends Function {}
|
|
interface IArguments {
|
|
[index: number]: any;
|
|
length: number;
|
|
callee: Function;
|
|
}
|
|
|
|
// Helper type
|
|
type Exclude<T, U> = T extends U ? never : T;
|