From e5b8c6eff65604dbb255e5e235479df4041316ed Mon Sep 17 00:00:00 2001 From: Jackie Yang Date: Wed, 22 Nov 2023 15:17:45 -0800 Subject: [PATCH] change signature of All --- lib/dsl-descriptor.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dsl-descriptor.ts b/lib/dsl-descriptor.ts index 52ca04b..67c032a 100644 --- a/lib/dsl-descriptor.ts +++ b/lib/dsl-descriptor.ts @@ -91,7 +91,7 @@ export class DataClass extends GenieObject { static All( this: T, ...args: any[] - ): InstanceType[] { + ): InstanceType[] | Promise[]> { throw new Error( "Not implemented. Did you forget to decorate the class with @GenieClass?" ); diff --git a/package.json b/package.json index b271465..2fe461a 100644 --- a/package.json +++ b/package.json @@ -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",