improve declaration examples

This commit is contained in:
Resi Respati
2018-08-01 12:35:46 +07:00
parent 0b58638297
commit 0a683c15e2

21
src/types.d.ts vendored
View File

@@ -1 +1,20 @@
// add your custom typings here
// example declaration file - remove these and add your own custom typings
// memory extension samples
interface CreepMemory {
role: string;
room: string;
working: boolean;
}
interface Memory {
uuid: number;
log: any;
}
// `global` extension samples
declare namespace NodeJS {
interface Global {
log: any;
}
}