improve declaration examples
This commit is contained in:
21
src/types.d.ts
vendored
21
src/types.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user