mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-22 11:40:10 +08:00
https://developers.google.com/apps-script/ from https://github.com/motemen/dts-google-apps-script/tree/c68a66fdd348ca5e5475355c503c0bcdb15d23b9
20 lines
729 B
TypeScript
20 lines
729 B
TypeScript
/// <reference path="google-apps-script.types.d.ts" />
|
|
|
|
declare module GoogleAppsScript {
|
|
export module Language {
|
|
/**
|
|
* The Language service provides scripts a way to compute automatic translations of text.
|
|
*
|
|
* // The code below will write "Esta es una prueba" to the log.
|
|
* var spanish = LanguageApp.translate('This is a test', 'en', 'es');
|
|
* Logger.log(spanish);
|
|
*/
|
|
export interface LanguageApp {
|
|
translate(text: string, sourceLanguage: string, targetLanguage: string): string;
|
|
translate(text: string, sourceLanguage: string, targetLanguage: string, advancedArgs: Object): string;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
declare var LanguageApp: GoogleAppsScript.Language.LanguageApp; |