Archive update v0.53.2

This commit is contained in:
Eliot Partridge
2019-09-17 20:19:23 -05:00
parent ac640dbe1a
commit 2c4e29eb70
133 changed files with 8047 additions and 9286 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/// <reference path="my/fix.d.ts" />
/// <reference path="my/canvas.d.ts" />
/// <reference path="my/node-async.d.ts" />
/// <reference path="my/patreon.d.ts" />
/// <reference path="my/webgl-debug.d.ts" />
-62
View File
@@ -1,62 +0,0 @@
declare module 'patreon' {
export interface PatronDataRelation {
data: {
id: string;
type: string;
};
links: {
related: string;
};
}
export interface PatronDataEntry {
attributes: {
title?: string;
description?: string;
amount_cents?: number;
created_at?: string;
declined_since?: string | null;
patron_pays_fees?: boolean;
pledge_cap_cents?: number;
total_historical_amount_cents?: number;
};
id: string;
relationships: {
patron: PatronDataRelation;
reward: PatronDataRelation;
};
type: string;
}
export interface PatronData {
rawJson: {
data: PatronDataEntry[];
included: PatronDataEntry[];
links: {
next?: string;
};
};
}
export interface PatreonClient {
(pathname: string): Promise<PatronData>;
getStore(): any;
setStore(store: { sync: () => void }): void;
}
export interface PatreonTokens {
access_token: string;
refresh_token: string;
expires_in: string;
scope: string;
token_type: string;
}
export interface PatreonOAuthClient {
getTokens(redirectCode: string, redirectUri: string): Promise<PatreonTokens>;
refreshToken(refreshToken: string): Promise<any>;
}
export function patreon(accessToken: string): PatreonClient;
export function oauth(clientId: string, clientSecret: string): PatreonOAuthClient;
}
+8
View File
@@ -0,0 +1,8 @@
interface WebGLRenderingContext {
readonly MAX_ELEMENT_INDEX: number;
}
declare module "webgl-debug" {
export function makeDebugContext(context: WebGLRenderingContext): WebGLRenderingContext;
export function makeDebugContext(context: WebGLRenderingContext, callbackOnThrow: (err: string, funcName: string, args: any) => void): WebGLRenderingContext;
}