blob: 3be4b2d77b661380262c0729c7a3ce3272f65ce0 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Type definitions for Google API Client
/// Project: https://github.com/google/google-api-javascript-client
/// Definitions by: Frank M <https://github.com/sgtfrankieboy>, grant <https://github.com/grant>
/// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// TypeScript Version: 2.3
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/gapi
// ignore_for_file: public_member_api_docs,
// * public_member_api_docs originally undocumented because the file was
// autogenerated.
@JS()
library gapi;
import 'package:js/js.dart';
// Module gapi
typedef LoadCallback = void Function(
[dynamic args1,
dynamic args2,
dynamic args3,
dynamic args4,
dynamic args5]);
@anonymous
@JS()
abstract class LoadConfig {
external factory LoadConfig(
{LoadCallback callback,
Function? onerror,
num? timeout,
Function? ontimeout});
external LoadCallback get callback;
external set callback(LoadCallback v);
external Function? get onerror;
external set onerror(Function? v);
external num? get timeout;
external set timeout(num? v);
external Function? get ontimeout;
external set ontimeout(Function? v);
}
/*type CallbackOrConfig = LoadConfig | LoadCallback;*/
/// Pragmatically initialize gapi class member.
/// Reference: https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiloadlibraries-callbackorconfig
@JS('gapi.load')
external void load(
String apiName, dynamic /*LoadConfig|LoadCallback*/ callback);
// End module gapi
// Manually removed gapi.auth and gapi.client, unused by this plugin.