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 /core/http/client.ts | |
parent | 8ff39cbe6300ca479584fe7d85ff03a1f65bc9b0 (diff) |
WIP sentence API
Diffstat (limited to 'core/http/client.ts')
-rw-r--r-- | core/http/client.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/http/client.ts b/core/http/client.ts index 118e8f5..6b4e1a3 100644 --- a/core/http/client.ts +++ b/core/http/client.ts @@ -1,4 +1,6 @@ +import { InputSentenceProps } from "../../language/types.ts"; import "../../util/array.ts"; +import { DeepPartial } from "../../util/types.ts"; import Core from "../api.ts"; import { ConnectionProps, ConnectionPropsDefault } from "./props.ts"; @@ -30,12 +32,10 @@ export default class RemoteCoreClient implements Core { return response.json(); } - async parseSentence(input: string) { + async parseSentence(input: string, options?: DeepPartial<InputSentenceProps>) { var request: CoreRequestParseSentence = { command: "parseSentence", - options: { - input: input, - }, + options: { input, options, }, }; var { response } = await this.request(request) as CoreResponseParseSentence; return response; |