bump dependencies, render values and slots
This commit is contained in:
parent
8a9fd5ebfe
commit
edb614f9aa
6 changed files with 147 additions and 106 deletions
|
|
@ -52,9 +52,18 @@ export function deepEvalInput(s: InputBlockState, env: DynamicEnvironment): Deep
|
|||
Int: BigInt,
|
||||
Double: Number,
|
||||
}[s.value.type] as (s: string) => any;
|
||||
let val;
|
||||
try {
|
||||
val = ctor(s.text);
|
||||
} catch (e) {
|
||||
return {
|
||||
kind: "input",
|
||||
err: e as Error,
|
||||
};
|
||||
}
|
||||
return {
|
||||
kind: "input",
|
||||
val: ctor(s.text)
|
||||
val: val,
|
||||
};
|
||||
}
|
||||
else if (s.value.kind === "name") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue