Added paths option to resolve stdlib imports in IDEs (#637)

This commit is contained in:
Willem Wyndham 2019-06-12 07:52:53 -04:00 committed by Daniel Wirtz
parent f9a77b132f
commit 334d944f67
3 changed files with 9 additions and 2 deletions

View File

@ -6,6 +6,12 @@
"noLib": true,
"allowJs": false,
"typeRoots": [ "types" ],
"types": [ "assembly" ]
"types": [ "assembly" ],
"baseUrl": ".",
"paths": {
"*": [
"./assembly/*"
]
}
}
}

View File

@ -10,3 +10,4 @@ declare function __visit(ref: usize, cookie: i32): void;
declare function __visit_globals(cookie: u32): void;
declare function __visit_members(ref: usize, cookie: u32): void;
declare function __allocArray(length: i32, alignLog2: usize, id: u32, data?: usize): usize;
declare const ASC_RTRACE: boolean;

View File

@ -15,7 +15,7 @@ import { onincrement, ondecrement, onfree, onalloc } from "./rtrace";
// B: buffered
// @ts-ignore: decorator
@inline const BUFFERED_MASK: u32 = 1 << (sizeof<u32>() * 8 - 1);
@inline const BUFFERED_MASK: u32 = 1 << ((sizeof<u32>() * 8) - 1);
// @ts-ignore: decorator
@inline const COLOR_BITS = 3;
// @ts-ignore: decorator