mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 00:58:32 +02:00
[WIP] Refactor to NPM workspaces (#104)
This commit is contained in:
32
src-tauri/yaak_templates/lib/bindings/parser.d.ts
vendored
Normal file
32
src-tauri/yaak_templates/lib/bindings/parser.d.ts
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
export type FnArg = {
|
||||
name: string;
|
||||
value: Val;
|
||||
};
|
||||
export type Token = {
|
||||
"type": "raw";
|
||||
text: string;
|
||||
} | {
|
||||
"type": "tag";
|
||||
val: Val;
|
||||
} | {
|
||||
"type": "eof";
|
||||
};
|
||||
export type Tokens = {
|
||||
tokens: Array<Token>;
|
||||
};
|
||||
export type Val = {
|
||||
"type": "str";
|
||||
text: string;
|
||||
} | {
|
||||
"type": "var";
|
||||
name: string;
|
||||
} | {
|
||||
"type": "bool";
|
||||
value: boolean;
|
||||
} | {
|
||||
"type": "fn";
|
||||
name: string;
|
||||
args: Array<FnArg>;
|
||||
} | {
|
||||
"type": "null";
|
||||
};
|
||||
Reference in New Issue
Block a user