2.3.5 • Published 2 years ago

@types/google-translate-api v2.3.5

Weekly downloads
935
License
MIT
Repository
github
Last release
2 years ago

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

// 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: Thu, 08 Jul 2021 12:02:25 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by maple3142.

2.3.4

2 years ago

2.3.3

2 years ago

2.3.5

2 years ago

2.3.2

4 years ago

2.3.1

5 years ago

2.3.0

7 years ago