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