mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-03 23:42:50 +00:00
* Add Google APIs typings * [gapi.cliebt.* ] Add version as part of typings name and fix gapi.client tslint errors * versions should not get their own folders fixing a few typos using /** syntax so comments show up in editors export only actual (last) version for now * export only actual (last) version for now * merge namespaces and remove unnecessary namespace qualifiers * remove namespace qualifier for gapi.client.Request from nested namespaces and change Request base interface to Promise * disable await-promise rule * fix collision between gapi.client.Request and Request from nested namespace disable no-irregular-whitespace rule * sort properties and namespace resources * remove empty comments sort resources amd methods in tests and readme.md * update 'this is autogenerated file' banner to remove this text from gapi.client namespace hint use multiline comments when comment has several lines * implement no-trailing-whitespace, no-padding, max-line-length, await-promise, no-irregular-whitespace rules * add strictFunctionTypes to tsconfig * fix "Whitespace within parentheses is not allowed" rule * fix ts-lint rules * fixes * remove deprecated replicapool and replicapoolupdater api * fix no-irregular-whitespace * fix no-irregular-whitespace
72 lines
3.4 KiB
TypeScript
72 lines
3.4 KiB
TypeScript
// Type definitions for Google Google Fonts Developer API v1 1.0
|
|
// Project: https://developers.google.com/fonts/docs/developer_api
|
|
// Definitions by: Bolisov Alexey <https://github.com/Bolisov>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
// IMPORTANT
|
|
// This file was generated by https://github.com/Bolisov/google-api-typings-generator. Please do not edit it manually.
|
|
// In case of any problems please post issue to https://github.com/Bolisov/google-api-typings-generator
|
|
// Generated from: https://www.googleapis.com/discovery/v1/apis/webfonts/v1/rest
|
|
|
|
/// <reference types="gapi.client" />
|
|
|
|
declare namespace gapi.client {
|
|
/** Load Google Fonts Developer API v1 */
|
|
function load(name: "webfonts", version: "v1"): PromiseLike<void>;
|
|
function load(name: "webfonts", version: "v1", callback: () => any): void;
|
|
|
|
const webfonts: webfonts.WebfontsResource;
|
|
|
|
namespace webfonts {
|
|
interface Webfont {
|
|
/** The category of the font. */
|
|
category?: string;
|
|
/** The name of the font. */
|
|
family?: string;
|
|
/** The font files (with all supported scripts) for each one of the available variants, as a key : value map. */
|
|
files?: Record<string, string>;
|
|
/** This kind represents a webfont object in the webfonts service. */
|
|
kind?: string;
|
|
/** The date (format "yyyy-MM-dd") the font was modified for the last time. */
|
|
lastModified?: string;
|
|
/** The scripts supported by the font. */
|
|
subsets?: string[];
|
|
/** The available variants for the font. */
|
|
variants?: string[];
|
|
/** The font version. */
|
|
version?: string;
|
|
}
|
|
interface WebfontList {
|
|
/** The list of fonts currently served by the Google Fonts API. */
|
|
items?: Webfont[];
|
|
/** This kind represents a list of webfont objects in the webfonts service. */
|
|
kind?: string;
|
|
}
|
|
interface WebfontsResource {
|
|
/** Retrieves the list of fonts currently served by the Google Fonts Developer API */
|
|
list(request: {
|
|
/** Data format for the response. */
|
|
alt?: string;
|
|
/** Selector specifying which fields to include in a partial response. */
|
|
fields?: string;
|
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
key?: string;
|
|
/** OAuth 2.0 token for the current user. */
|
|
oauth_token?: string;
|
|
/** Returns response with indentations and line breaks. */
|
|
prettyPrint?: boolean;
|
|
/**
|
|
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
* Overrides userIp if both are provided.
|
|
*/
|
|
quotaUser?: string;
|
|
/** Enables sorting of the list */
|
|
sort?: string;
|
|
/** IP address of the site where the request originates. Use this if you want to enforce per-user limits. */
|
|
userIp?: string;
|
|
}): Request<WebfontList>;
|
|
}
|
|
}
|
|
}
|