diff --git a/src/definitions.ts b/src/definitions.ts index 2a39a927a5..7bb599b272 100644 --- a/src/definitions.ts +++ b/src/definitions.ts @@ -605,33 +605,28 @@ export class TSDBuilder extends ExportsWalker { build(): string { var sb = this.sb; var isWasm64 = this.program.options.isWasm64; - sb.push("declare module ASModule {\n"); - sb.push(" type i8 = number;\n"); - sb.push(" type i16 = number;\n"); - sb.push(" type i32 = number;\n"); - sb.push(" type i64 = bigint;\n"); + sb.push("type i8 = number;\n"); + sb.push("type i16 = number;\n"); + sb.push("type i32 = number;\n"); + sb.push("type i64 = bigint;\n"); if (isWasm64) { - sb.push(" type isize = bigint;\n"); + sb.push("type isize = bigint;\n"); } else { - sb.push(" type isize = number;\n"); + sb.push("type isize = number;\n"); } - sb.push(" type u8 = number;\n"); - sb.push(" type u16 = number;\n"); - sb.push(" type u32 = number;\n"); - sb.push(" type u64 = bigint;\n"); + sb.push("type u8 = number;\n"); + sb.push("type u16 = number;\n"); + sb.push("type u32 = number;\n"); + sb.push("type u64 = bigint;\n"); if (isWasm64) { - sb.push(" type usize = bigint;\n"); + sb.push("type usize = bigint;\n"); } else { - sb.push(" type usize = number;\n"); + sb.push("type usize = number;\n"); } - sb.push(" type f32 = number;\n"); - sb.push(" type f64 = number;\n"); - sb.push(" type bool = boolean | number;\n"); - ++this.indentLevel; + sb.push("type f32 = number;\n"); + sb.push("type f64 = number;\n"); + sb.push("type bool = boolean | number;\n"); this.walk(); - --this.indentLevel; - sb.push("}\n"); - sb.push("export default ASModule;\n"); return this.sb.join(""); } } diff --git a/src/index.ts b/src/index.ts index 93019b838c..526444eade 100644 --- a/src/index.ts +++ b/src/index.ts @@ -299,10 +299,6 @@ export * from "./program"; export * from "./resolver"; export * from "./tokenizer"; export * from "./types"; -// TODO: When vTables are pulled, perhaps it would be better to extend an ASTWalker export * from "./extra/ast"; import * as util from "./util/index"; export { util }; - -// TODO: compat with 0.9, remove with 0.10 -export * from "./util/index";