Skip to content

Commit

Permalink
change signature of All
Browse files Browse the repository at this point in the history
  • Loading branch information
valkjsaaa committed Nov 22, 2023
1 parent 52d7288 commit e5b8c6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dsl-descriptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class DataClass extends GenieObject {
static All<T extends typeof DataClass>(
this: T,
...args: any[]
): InstanceType<T>[] {
): InstanceType<T>[] | Promise<InstanceType<T>[]> {
throw new Error(
"Not implemented. Did you forget to decorate the class with @GenieClass?"
);
Expand Down
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.45",
"version": "0.0.46",
"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 e5b8c6e

Please sign in to comment.