Type Parameters
- hash extends string | number = string | number
- atom extends Atom & {
Tag: hash;
} = Atom & {
Tag: hash;
} - path = unknown
Parameters
- file: Partial<File<{
FilePath: path;
}>> Optional
conf: null | Partial<Config<{
FilePath: path;
NodeHash: hash;
}>>
The transpiled aran program along with warnings.
Transpile a JavaScript program to an Aran program.
Throws
AranInputError If
conf
is invalid or if the top level properties offile
are invalid.Throws
AranSyntaxError If there is problem with the AST at
file.root
either because there is an early syntax error or because it is not a valid ESTree program.