From ca8c3ab8f0f2ac4fe73ff2dd0b21f69c9fb48f5f Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Mon, 16 Nov 2020 08:09:22 -0300 Subject: [PATCH] new(all): Optimizing language interfaces. --- .prettierrc | 8 ++++++++ package.json | 2 +- src/IGBConversationalService.ts | 16 ++++++---------- 3 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..c1e1114 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +{ + "trailingComma": "none", + "tabWidth": 2, + "printWidth": 120, + "arrowParens": "avoid", + "semi": true, + "singleQuote": true +} \ No newline at end of file diff --git a/package.json b/package.json index 11026a0..41eddca 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/IGBConversationalService.ts b/src/IGBConversationalService.ts index 1741e08..f87bbcb 100644 --- a/src/IGBConversationalService.ts +++ b/src/IGBConversationalService.ts @@ -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; - + translate(min: GBMinInstance, text: string, language: string): Promise; + getLanguage(min: GBMinInstance, text: string): Promise; + spellCheck(min: GBMinInstance, text: string): Promise; }