From ce9e0788317b25e5d297ed38d9fed0754a341288 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 1 Jul 2023 16:37:50 +0200 Subject: WIP sentence API --- api/yomikun.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'api/yomikun.ts') 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 { - return new Sentence().withParent(this); + var sentence = new Sentence(input).withParent(this); + await sentence.ready; + return sentence; } } -- cgit v1.2.3