Skip to content

Commit

Permalink
Fix describe on primitive types
Browse files Browse the repository at this point in the history
  • Loading branch information
valkjsaaa committed Nov 23, 2023
1 parent 04a000e commit 4283510
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion lib/dsl/dsl-interpreter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,10 @@ export class DslInterpreter {
value: ast.value,
};
} else {
await ast.value.update()
// if ast.value have update function, call it
if (ast.value.update !== undefined) {
await ast.value.update()
}
return { type: "object", value: await ast.value.description() };
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reactgenie-dsl",
"version": "0.0.48",
"version": "0.0.49",
"description": "A natural language parser based on a large language model",
"scripts": {
"prepare": "peggy lib/dsl/parser.pegjs -o lib/dsl/parser.gen.js && tsc",
Expand Down

0 comments on commit 4283510

Please sign in to comment.