From 0a683c15e27e05051bd4adf97bf0d1b927dc8403 Mon Sep 17 00:00:00 2001 From: Resi Respati Date: Wed, 1 Aug 2018 12:35:46 +0700 Subject: [PATCH] improve declaration examples --- src/types.d.ts | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/types.d.ts b/src/types.d.ts index 8849c13..00727b9 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -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; + } +}