Commit 251cd33

Anton Golub <antongolub@antongolub.com>
2021-06-19 12:40:35
chore(types): declare global injects as vars (#145)
1 parent e0e93f3
Changed files (2)
.gitignore
@@ -1,3 +1,4 @@
 /node_modules/
 /.idea/
 package-lock.json
+yarn.lock
index.d.ts
@@ -70,14 +70,14 @@ export const question: question
 export const sleep: sleep
 
 declare global {
-  const $: $
-  const cd: cd
-  const chalk: typeof _chalk
+  var $: $
+  var cd: cd
+  var chalk: typeof _chalk
   // @ts-ignore
-  const fetch: typeof _fetch
-  const fs: fs
-  const nothrow: nothrow
-  const os: typeof _os
-  const question: question
-  const sleep: sleep
+  var fetch: typeof _fetch
+  var fs: fs
+  var nothrow: nothrow
+  var os: typeof _os
+  var question: question
+  var sleep: sleep
 }