diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-09-01 07:45:26 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-09-01 10:45:26 -0400 |
commit | f83aee02e66214853a008ebe4b5141405ac3a950 (patch) | |
tree | 4e95505f445d841e943da72e0db8364aaf92e9c9 /js/os.ts | |
parent | 89dddca3b4865fe4496f51680c70547e65c272eb (diff) |
Bundle most types into globals.d.ts (#642)
Diffstat (limited to 'js/os.ts')
-rw-r--r-- | js/os.ts | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -128,8 +128,8 @@ export function readFileSync(filename: string): Uint8Array { return new Uint8Array(dataArray!); } -function createEnv(_msg: fbs.EnvironRes): { [index:string]: string } { - const env: { [index:string]: string } = {}; +function createEnv(_msg: fbs.EnvironRes): { [index: string]: string } { + const env: { [index: string]: string } = {}; for (let i = 0; i < _msg.mapLength(); i++) { const item = _msg.map(i)!; @@ -169,7 +169,7 @@ function setEnv(key: string, value: string): void { * const newEnv = deno.env(); * console.log(env.TEST_VAR == newEnv.TEST_VAR); */ -export function env(): { [index:string]: string } { +export function env(): { [index: string]: string } { /* Ideally we could write const res = send({ command: fbs.Command.ENV, |