Update value.ts

This commit is contained in:
Corey Johnson 2025-10-16 09:53:05 -07:00
parent f3759c2259
commit 4a5618e900

View File

@ -9,14 +9,14 @@ export type Value =
| { type: 'dict'; value: Dict } | { type: 'dict'; value: Dict }
| { type: 'regex'; value: RegExp } | { type: 'regex'; value: RegExp }
| { | {
type: 'function' type: 'function'
params: string[] params: string[]
defaults: Record<string, number> // indices into constants defaults: Record<string, number> // indices into constants
body: number body: number
parentScope: Scope parentScope: Scope
variadic: boolean variadic: boolean
named: boolean named: boolean
value: '<function>' value: '<function>'
} }
export type Dict = Map<string, Value> export type Dict = Map<string, Value>