mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 21:55:52 +02:00
tslint changes
This commit is contained in:
@@ -4,5 +4,6 @@ node_modules/
|
||||
/build-copy/
|
||||
/logs/
|
||||
/settings/
|
||||
.idea/
|
||||
|
||||
/config.json
|
||||
File diff suppressed because one or more lines are too long
@@ -3475,4 +3475,3 @@ export const head1 = [
|
||||
undefined,
|
||||
[[0, 1, 3, 5, 6, 8, 9, 11, 12, 13, 15, 17, 18, 19].map(i => head[1]![0]![i])],
|
||||
];
|
||||
|
||||
Vendored
+1
-1
@@ -15,7 +15,7 @@ interface NodeStaticImage {
|
||||
new(width?: number, height?: number): NodeCanvasImage;
|
||||
}
|
||||
|
||||
declare module "canvas" {
|
||||
declare module 'canvas' {
|
||||
export function createCanvas(width: number, height: number): HTMLCanvasElement;
|
||||
export type Canvas = HTMLCanvasElement;
|
||||
export const Image: NodeStaticImage;
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
interface HTMLCanvasElement {
|
||||
getContext(contextId: "webgl2", contextAttributes?: WebGLContextAttributes): WebGLRenderingContext | null;
|
||||
getContext(contextId: 'webgl2', contextAttributes?: WebGLContextAttributes): WebGLRenderingContext | null;
|
||||
}
|
||||
|
||||
interface WebGLRenderingContext {
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
declare module "fs" {
|
||||
declare module 'fs' {
|
||||
import * as Promise from "bluebird";
|
||||
|
||||
export function writeFileAsync(filename: string, data: any): Promise<void>;
|
||||
|
||||
Vendored
+4
@@ -40,7 +40,9 @@ declare module 'patreon' {
|
||||
|
||||
export interface PatreonClient {
|
||||
(pathname: string): Promise<PatronData>;
|
||||
|
||||
getStore(): any;
|
||||
|
||||
setStore(store: { sync: () => void }): void;
|
||||
}
|
||||
|
||||
@@ -54,9 +56,11 @@ declare module 'patreon' {
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
+4
-3
@@ -10,7 +10,8 @@
|
||||
"forin": true,
|
||||
"indent": [
|
||||
true,
|
||||
"tabs"
|
||||
"spaces",
|
||||
2
|
||||
],
|
||||
"label-position": true,
|
||||
"no-arg": true,
|
||||
@@ -36,11 +37,11 @@
|
||||
"no-trailing-whitespace": true,
|
||||
"linebreak-style": [
|
||||
true,
|
||||
"CRLF"
|
||||
"LF"
|
||||
],
|
||||
"max-line-length": [
|
||||
true,
|
||||
130
|
||||
140
|
||||
],
|
||||
"one-line": [
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user