@types/google-translate-api
Advanced tools
Comparing version
@@ -7,22 +7,22 @@ // Type definitions for google-translate-api 2.3 | ||
interface TranslateOption { | ||
from?: string; | ||
to?: string; | ||
raw?: boolean; | ||
from?: string; | ||
to?: string; | ||
raw?: boolean; | ||
} | ||
interface TranslateResult { | ||
text: string; | ||
from: { | ||
language: { | ||
didYouMean: boolean; | ||
iso: string; | ||
} | ||
text: { | ||
autoCorrected: boolean; | ||
value: string; | ||
didYouMean: boolean; | ||
} | ||
}; | ||
raw: string; | ||
text: string; | ||
from: { | ||
language: { | ||
didYouMean: boolean; | ||
iso: string; | ||
} | ||
text: { | ||
autoCorrected: boolean; | ||
value: string; | ||
didYouMean: boolean; | ||
} | ||
}; | ||
raw: string; | ||
} | ||
declare function translate(text: string, options?: TranslateOption): Promise<TranslateResult>; | ||
export = translate; |
{ | ||
"name": "@types/google-translate-api", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "TypeScript definitions for google-translate-api", | ||
@@ -14,10 +14,12 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/google-translate-api" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "c1618114c7678ba86ed71a3af7ae1e8d8f2619c6e7a8a2968adb6780ce1659e2", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "28ede0d5c798f2711d8c05600e5107b87882168402764725627bd89897302a24", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google-translate-api | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google-translate-api. | ||
Additional Details | ||
* Last updated: Mon, 10 Sep 2018 23:10:33 GMT | ||
### Additional Details | ||
* Last updated: Fri, 15 May 2020 04:09:35 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by maple3142 <https://github.com/maple3142>. | ||
These definitions were written by [maple3142](https://github.com/maple3142). |
Sorry, the diff of this file is not supported yet
3155
3.44%