@types/google-translate-api
TypeScript icon, indicating that this package has built-in type declarations

2.3.5 • Public • Published

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.

/@types/google-translate-api/

    Package Sidebar

    Install

    npm i @types/google-translate-api

    Weekly Downloads

    850

    Version

    2.3.5

    License

    MIT

    Unpacked Size

    3.7 kB

    Total Files

    5

    Last publish

    Collaborators

    • types