Type Parameters
- hash extends string | number = string | number
- atom extends Atom & {
Tag: hash;
} = Atom & {
Tag: hash;
} - path = unknown
Parameters
- file: Partial<File<{
FilePath: path;
}>> Optionalconf: 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
confis invalid or if the top level properties offileare invalid.Throws
AranSyntaxError If there is problem with the AST at
file.rooteither because there is an early syntax error or because it is not a valid ESTree program.