Skip to content

Commit

Permalink
fix: too many to list
Browse files Browse the repository at this point in the history
  • Loading branch information
stagas committed Dec 7, 2022
1 parent 0730050 commit de99afc
Show file tree
Hide file tree
Showing 12 changed files with 3,659 additions and 113 deletions.
25 changes: 25 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"jsc": {
"target": "es2022",
"parser": {
"syntax": "typescript",
"tsx": true,
"decorators": true,
"dynamicImport": true
},
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true,
"useDefineForClassFields": true,
"react": {
"runtime": "automatic"
},
"hidden": {
"jest": true
}
},
"keepClassNames": true
},
"sourceMaps": true,
"inlineSourcesContent": true
}
10 changes: 7 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ declare const make: {
(string: string, options?: Options, context?: Context): Uint8Array
}

declare type ModuleBuilder = any
export declare interface ModuleBuilder {

}

export declare interface FunctionContext {

}

declare const compile: {
(node: Node): Context
Expand All @@ -32,8 +38,6 @@ declare const tokenize: {
}

export {
GlobalContext,
ModuleBuilder,
tokenize,
parse,
compile,
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import ModuleBuilder from './lib/builder.js'
import compile, { GlobalContext } from './lib/compiler.js'
import compile, { GlobalContext, FunctionContext } from './lib/compiler.js'
import { tokenize } from './lib/lexer.js'
import parse from './lib/parser.js'

export { tokenize }
export { parse }
export { compile }
export { ModuleBuilder, GlobalContext }
export { ModuleBuilder, GlobalContext, FunctionContext }

/**
* Compiles a WAT source string to a buffer.
Expand Down
Loading

0 comments on commit de99afc

Please sign in to comment.