mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
DT cleanup part 5
Fix non-expectRule lint failures
This commit is contained in:
parent
e609ea0832
commit
f37be7d91d
4
types/jss/index.d.ts
vendored
4
types/jss/index.d.ts
vendored
@ -104,7 +104,7 @@ export interface RuleOptions {
|
||||
index: number;
|
||||
className: string;
|
||||
}
|
||||
export declare class SheetsRegistry {
|
||||
export class SheetsRegistry {
|
||||
constructor();
|
||||
registry: ReadonlyArray<StyleSheet>;
|
||||
readonly index: number;
|
||||
@ -122,7 +122,7 @@ export type CreateStyleSheetOptions<Name extends string = any> = Partial<{
|
||||
generateClassName: GenerateClassName<Name>;
|
||||
classNamePrefix: string;
|
||||
}>;
|
||||
export declare class JSS {
|
||||
export class JSS {
|
||||
constructor(options?: Partial<JSSOptions>);
|
||||
createStyleSheet<Name extends string>(
|
||||
styles: Partial<Styles<Name>>,
|
||||
|
||||
4
types/node-xlsx/index.d.ts
vendored
4
types/node-xlsx/index.d.ts
vendored
@ -10,7 +10,7 @@
|
||||
* @param options options is for xlsx
|
||||
* @returns worksheets data, like: { name: 'worksheets', data: [[1,2,3],['1', '2','word']] }
|
||||
*/
|
||||
export declare function parse(
|
||||
export function parse(
|
||||
mixed: string | ArrayBuffer,
|
||||
options?: {}
|
||||
): Array<{
|
||||
@ -24,7 +24,7 @@ export declare function parse(
|
||||
* @param options spannig multiple rows A1:A4
|
||||
* @returns returns a buffer of worksheets
|
||||
*/
|
||||
export declare function build(
|
||||
export function build(
|
||||
worksheets: Array<{ name: string; data: any[][] }>,
|
||||
options?: {}
|
||||
): ArrayBuffer;
|
||||
|
||||
22
types/react-native-fetch-blob/index.d.ts
vendored
22
types/react-native-fetch-blob/index.d.ts
vendored
@ -33,11 +33,11 @@ export interface Polyfill {
|
||||
Fetch: PolyfillFetch;
|
||||
}
|
||||
|
||||
export declare class PolyfillFetch extends RNFetchBlobFetchPolyfill {
|
||||
export class PolyfillFetch extends RNFetchBlobFetchPolyfill {
|
||||
constructor(config: RNFetchBlobConfig);
|
||||
}
|
||||
|
||||
export declare class RNFetchBlobFetchPolyfill {
|
||||
export class RNFetchBlobFetchPolyfill {
|
||||
constructor(config: RNFetchBlobConfig);
|
||||
|
||||
build(): (url: string, options: RNFetchBlobConfig) => StatefulPromise<RNFetchBlobFetchRepsonse>;
|
||||
@ -129,13 +129,13 @@ export interface PolyfillFileReader extends EventTarget {
|
||||
result: number;
|
||||
}
|
||||
|
||||
export declare namespace PolyfillFileReader {
|
||||
export namespace PolyfillFileReader {
|
||||
const EMPTY: number;
|
||||
const LOADING: number;
|
||||
const DONE: number;
|
||||
}
|
||||
|
||||
export declare class PolyfillEvent {
|
||||
export class PolyfillEvent {
|
||||
}
|
||||
|
||||
export interface PolyfillProgressEvent extends EventTarget {
|
||||
@ -144,7 +144,7 @@ export interface PolyfillProgressEvent extends EventTarget {
|
||||
total: number;
|
||||
}
|
||||
|
||||
export declare class PolyfillBlob extends EventTarget {
|
||||
export class PolyfillBlob extends EventTarget {
|
||||
/**
|
||||
* RNFetchBlob Blob polyfill, create a Blob directly from file path, BASE64
|
||||
* encoded data, and string. The conversion is done implicitly according to
|
||||
@ -194,7 +194,7 @@ export declare class PolyfillBlob extends EventTarget {
|
||||
close(): Promise<void>;
|
||||
}
|
||||
|
||||
export declare namespace PolyfillBlob {
|
||||
export namespace PolyfillBlob {
|
||||
function clearCache(): void;
|
||||
|
||||
function build(data: any, cType: any): Promise<PolyfillBlob>;
|
||||
@ -202,7 +202,7 @@ export declare namespace PolyfillBlob {
|
||||
function setLog(level: number): void;
|
||||
}
|
||||
|
||||
export declare class PolyfillFile extends PolyfillBlob {
|
||||
export class PolyfillFile extends PolyfillBlob {
|
||||
}
|
||||
|
||||
export interface PolyfillXMLHttpRequest extends PolyfillXMLHttpRequestEventTarget {
|
||||
@ -252,7 +252,7 @@ export interface PolyfillXMLHttpRequest extends PolyfillXMLHttpRequestEventTarge
|
||||
responseType: string;
|
||||
}
|
||||
|
||||
export declare namespace PolyfillXMLHttpRequest {
|
||||
export namespace PolyfillXMLHttpRequest {
|
||||
const binaryContentTypes: string[];
|
||||
const UNSENT: number;
|
||||
const OPENED: number;
|
||||
@ -490,7 +490,7 @@ export interface StatefulPromise<T> extends Promise<T> {
|
||||
expire(callback: () => void): StatefulPromise<void>;
|
||||
}
|
||||
|
||||
export declare class RNFetchBlobSession {
|
||||
export class RNFetchBlobSession {
|
||||
constructor(name: string, list: string[]);
|
||||
|
||||
add(path: string): RNFetchBlobSession;
|
||||
@ -609,10 +609,10 @@ export interface RNFetchBlobStream {
|
||||
onEnd(): void;
|
||||
}
|
||||
|
||||
export declare class RNFetchBlobFile {
|
||||
export class RNFetchBlobFile {
|
||||
}
|
||||
|
||||
export declare class RNFetchBlobStat {
|
||||
export class RNFetchBlobStat {
|
||||
lastModified: string;
|
||||
size: string;
|
||||
type: "directory" | "file";
|
||||
|
||||
6
types/readable-stream/package.json
Normal file
6
types/readable-stream/package.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"safe-buffer": "*"
|
||||
}
|
||||
}
|
||||
22
types/rn-fetch-blob/index.d.ts
vendored
22
types/rn-fetch-blob/index.d.ts
vendored
@ -33,11 +33,11 @@ export interface Polyfill {
|
||||
Fetch: PolyfillFetch;
|
||||
}
|
||||
|
||||
export declare class PolyfillFetch extends RNFetchBlobFetchPolyfill {
|
||||
export class PolyfillFetch extends RNFetchBlobFetchPolyfill {
|
||||
constructor(config: RNFetchBlobConfig);
|
||||
}
|
||||
|
||||
export declare class RNFetchBlobFetchPolyfill {
|
||||
export class RNFetchBlobFetchPolyfill {
|
||||
constructor(config: RNFetchBlobConfig);
|
||||
|
||||
build(): (url: string, options: RNFetchBlobConfig) => StatefulPromise<RNFetchBlobFetchRepsonse>;
|
||||
@ -129,13 +129,13 @@ export interface PolyfillFileReader extends EventTarget {
|
||||
result: number;
|
||||
}
|
||||
|
||||
export declare namespace PolyfillFileReader {
|
||||
export namespace PolyfillFileReader {
|
||||
const EMPTY: number;
|
||||
const LOADING: number;
|
||||
const DONE: number;
|
||||
}
|
||||
|
||||
export declare class PolyfillEvent {
|
||||
export class PolyfillEvent {
|
||||
}
|
||||
|
||||
export interface PolyfillProgressEvent extends EventTarget {
|
||||
@ -144,7 +144,7 @@ export interface PolyfillProgressEvent extends EventTarget {
|
||||
total: number;
|
||||
}
|
||||
|
||||
export declare class PolyfillBlob extends EventTarget {
|
||||
export class PolyfillBlob extends EventTarget {
|
||||
/**
|
||||
* RNFetchBlob Blob polyfill, create a Blob directly from file path, BASE64
|
||||
* encoded data, and string. The conversion is done implicitly according to
|
||||
@ -194,7 +194,7 @@ export declare class PolyfillBlob extends EventTarget {
|
||||
close(): Promise<void>;
|
||||
}
|
||||
|
||||
export declare namespace PolyfillBlob {
|
||||
export namespace PolyfillBlob {
|
||||
function clearCache(): void;
|
||||
|
||||
function build(data: any, cType: any): Promise<PolyfillBlob>;
|
||||
@ -202,7 +202,7 @@ export declare namespace PolyfillBlob {
|
||||
function setLog(level: number): void;
|
||||
}
|
||||
|
||||
export declare class PolyfillFile extends PolyfillBlob {
|
||||
export class PolyfillFile extends PolyfillBlob {
|
||||
}
|
||||
|
||||
export interface PolyfillXMLHttpRequest extends PolyfillXMLHttpRequestEventTarget {
|
||||
@ -252,7 +252,7 @@ export interface PolyfillXMLHttpRequest extends PolyfillXMLHttpRequestEventTarge
|
||||
responseType: string;
|
||||
}
|
||||
|
||||
export declare namespace PolyfillXMLHttpRequest {
|
||||
export namespace PolyfillXMLHttpRequest {
|
||||
const binaryContentTypes: string[];
|
||||
const UNSENT: number;
|
||||
const OPENED: number;
|
||||
@ -490,7 +490,7 @@ export interface StatefulPromise<T> extends Promise<T> {
|
||||
expire(callback: () => void): StatefulPromise<void>;
|
||||
}
|
||||
|
||||
export declare class RNFetchBlobSession {
|
||||
export class RNFetchBlobSession {
|
||||
constructor(name: string, list: string[]);
|
||||
|
||||
add(path: string): RNFetchBlobSession;
|
||||
@ -609,10 +609,10 @@ export interface RNFetchBlobStream {
|
||||
onEnd(): void;
|
||||
}
|
||||
|
||||
export declare class RNFetchBlobFile {
|
||||
export class RNFetchBlobFile {
|
||||
}
|
||||
|
||||
export declare class RNFetchBlobStat {
|
||||
export class RNFetchBlobStat {
|
||||
lastModified: string;
|
||||
size: string;
|
||||
type: "directory" | "file";
|
||||
|
||||
2
types/words-to-numbers/index.d.ts
vendored
2
types/words-to-numbers/index.d.ts
vendored
@ -3,5 +3,5 @@
|
||||
// Definitions by: James Frowen <https://github.com/James-Frowen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export declare function wordsToNumbers(text: string, options?: { fuzzy: boolean }): string | number | null;
|
||||
export function wordsToNumbers(text: string, options?: { fuzzy: boolean }): string | number | null;
|
||||
export default wordsToNumbers;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user