diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-07-01 16:37:50 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-07-01 16:37:50 +0200 |
commit | ce9e0788317b25e5d297ed38d9fed0754a341288 (patch) | |
tree | 29563a39c73ded16cd93eb7b5c5664d1ece944ac /api/yomikun.ts | |
parent | 8ff39cbe6300ca479584fe7d85ff03a1f65bc9b0 (diff) |
WIP sentence API
Diffstat (limited to 'api/yomikun.ts')
-rw-r--r-- | api/yomikun.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/api/yomikun.ts b/api/yomikun.ts index 4971567..60d49ba 100644 --- a/api/yomikun.ts +++ b/api/yomikun.ts @@ -1,5 +1,6 @@ import Core from "../core/api.ts"; import RemoteCoreClient from "../core/http/client.ts"; +import { ParseResult } from "../language/types.ts"; import Sentence from "./sentence.ts"; export default class Yomikun { @@ -10,7 +11,9 @@ export default class Yomikun { } async sentence(input: string): Promise<Sentence> { - return new Sentence().withParent(this); + var sentence = new Sentence(input).withParent(this); + await sentence.ready; + return sentence; } } |