We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67bd115 commit bae8bdbCopy full SHA for bae8bdb
src/parser/aison.ts
@@ -1,17 +1,16 @@
1
/**
2
* AiSON: AiScript Object Notation
3
*/
4
+import type { JsValue } from '../interpreter/util.js';
5
import { nodeToJs } from '../utils/node-to-js.js';
6
import { Scanner } from './scanner.js';
7
import { parseAiSonTopLevel } from './syntaxes/aison.js';
8
9
export class AiSON {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
- public static parse(input: string): any {
+ public static parse(input: string): JsValue {
11
const scanner = new Scanner(input);
12
const ast = parseAiSonTopLevel(scanner);
13
14
15
- return nodeToJs(ast) as any;
+ return nodeToJs(ast);
16
}
17
0 commit comments