diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-06-29 23:25:01 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-06-29 23:25:01 +0200 |
commit | cc5689eaf4f7cfa158e31107906434da9aed62bf (patch) | |
tree | f02bb5f0887a48de32b9b06b6500c158043f0c52 /core/api.ts | |
parent | ccd4760cc28082c2d7d9bbebd1a60fe7da65d121 (diff) |
WIP examples + change `.prepare()` to `await .ready`
Diffstat (limited to 'core/api.ts')
-rw-r--r-- | core/api.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/api.ts b/core/api.ts index 0891081..017e131 100644 --- a/core/api.ts +++ b/core/api.ts @@ -7,8 +7,8 @@ import { ParseResult } from "../language/types.ts"; * swapped easily. */ export default abstract class API { - /** @summary prepare API client */ - abstract prepare(): Promise<void>; + /** @summary resolved when ready */ + abstract ready: Promise<void>; /** @summary parse sentence */ abstract parseSentence(input: string): Promise<ParseResult>; |