@types/google-translate-api
Advanced tools
Comparing version
@@ -7,5 +7,5 @@ // Type definitions for google-translate-api 2.3 | ||
interface TranslateOption { | ||
from?: string; | ||
to?: string; | ||
raw?: boolean; | ||
from?: string | undefined; | ||
to?: string | undefined; | ||
raw?: boolean | undefined; | ||
} | ||
@@ -12,0 +12,0 @@ interface TranslateResult { |
{ | ||
"name": "@types/google-translate-api", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "TypeScript definitions for google-translate-api", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google-translate-api", | ||
"license": "MIT", | ||
@@ -22,4 +23,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "28ede0d5c798f2711d8c05600e5107b87882168402764725627bd89897302a24", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "734120b9c72c47471256799accd6573e18dd619a08c4e401054662cd4cf73588", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,36 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google-translate-api. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google-translate-api/index.d.ts) | ||
````ts | ||
// Type definitions for google-translate-api 2.3 | ||
// Project: https://github.com/matheuss/google-translate-api#readme | ||
// Definitions by: maple3142 <https://github.com/maple3142> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
interface TranslateOption { | ||
from?: string | undefined; | ||
to?: string | undefined; | ||
raw?: boolean | undefined; | ||
} | ||
interface TranslateResult { | ||
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; | ||
```` | ||
### Additional Details | ||
* Last updated: Fri, 15 May 2020 04:09:35 GMT | ||
* Last updated: Thu, 08 Jul 2021 12:02:25 GMT | ||
* Dependencies: none | ||
@@ -14,0 +45,0 @@ * Global values: none |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4210
33.44%0
-100%48
182.35%