new(all): Optimizing language interfaces.
This commit is contained in:
parent
9cc49eee81
commit
ca8c3ab8f0
3 changed files with 15 additions and 11 deletions
8
.prettierrc
Normal file
8
.prettierrc
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"trailingComma": "none",
|
||||
"tabWidth": 2,
|
||||
"printWidth": 120,
|
||||
"arrowParens": "avoid",
|
||||
"semi": true,
|
||||
"singleQuote": true
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "botlib",
|
||||
"version": "1.6.5",
|
||||
"version": "1.6.6",
|
||||
"description": "General Bot base library for building Node.js TypeScript Apps packages (.gbapp) and Libray packages (.gblib)",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index",
|
||||
|
|
|
@ -30,10 +30,10 @@
|
|||
| |
|
||||
\*****************************************************************************/
|
||||
|
||||
"use strict";
|
||||
'use strict';
|
||||
|
||||
import { GBMinInstance } from "./GBMinInstance";
|
||||
import { GBDialogStep } from "./GBDialogStep";
|
||||
import { GBMinInstance } from './GBMinInstance';
|
||||
import { GBDialogStep } from './GBDialogStep';
|
||||
|
||||
export interface IGBConversationalService {
|
||||
prompt(min: GBMinInstance, step: GBDialogStep, text: string);
|
||||
|
@ -47,11 +47,7 @@ export interface IGBConversationalService {
|
|||
getCurrentLanguage(step: GBDialogStep);
|
||||
getNewMobileCode();
|
||||
sendMarkdownToMobile(min: GBMinInstance, step: GBDialogStep, mobile: string, text: string);
|
||||
translate(min: GBMinInstance,
|
||||
key: string,
|
||||
endPoint: string,
|
||||
text: string,
|
||||
language: string
|
||||
): Promise<string>;
|
||||
|
||||
translate(min: GBMinInstance, text: string, language: string): Promise<string>;
|
||||
getLanguage(min: GBMinInstance, text: string): Promise<string>;
|
||||
spellCheck(min: GBMinInstance, text: string): Promise<string>;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue