Installation
npm install --save @types/google-translate-api
Summary
This package contains type definitions for google-translate-api (https://github.com/matheuss/google-translate-api#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google-translate-api.
index.d.ts
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: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by maple3142.