Skip to content

Commit bae8bdb

Browse files
FineArchsuzmoi
andauthored
add Aison.parse type
Co-authored-by: uzmoi <rizzzse@gmail.com>
1 parent 67bd115 commit bae8bdb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/parser/aison.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
/**
22
* AiSON: AiScript Object Notation
33
*/
4+
import type { JsValue } from '../interpreter/util.js';
45
import { nodeToJs } from '../utils/node-to-js.js';
56
import { Scanner } from './scanner.js';
67
import { parseAiSonTopLevel } from './syntaxes/aison.js';
78

89
export class AiSON {
9-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
10-
public static parse(input: string): any {
10+
public static parse(input: string): JsValue {
1111
const scanner = new Scanner(input);
1212
const ast = parseAiSonTopLevel(scanner);
1313

14-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
15-
return nodeToJs(ast) as any;
14+
return nodeToJs(ast);
1615
}
1716
}

0 commit comments

Comments
 (0)