asva-executors
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -7,1 +7,3 @@ import executors from './build/index' | ||
export const RepeatExecutor = executors.RepeatExecutor | ||
{ | ||
"name": "asva-executors", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Helper classes for your async flow control", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,3 +8,3 @@ import Executor from './Executor' | ||
cachedPromise: Promise<any> = null | ||
cachedPromise: Promise<any> | null = null | ||
@@ -14,3 +14,3 @@ /** | ||
*/ | ||
run (...parameters): Promise<any> { | ||
run (...parameters: any[]): Promise<any> { | ||
if (!this.cachedPromise) { | ||
@@ -22,3 +22,3 @@ this.cachedPromise = super.run(...parameters) | ||
runFresh (...parameters): Promise<any> { | ||
runFresh (...parameters: any[]): Promise<any> { | ||
this.cachedPromise = super.run(...parameters) | ||
@@ -25,0 +25,0 @@ return this.cachedPromise |
@@ -41,3 +41,3 @@ export default class Executor { | ||
*/ | ||
run (...parameters): Promise<any> { | ||
run (...parameters: any[]): Promise<any> { | ||
this.beforeRun() | ||
@@ -44,0 +44,0 @@ const promise = this.command(...parameters) |
@@ -16,3 +16,3 @@ import Executor from './Executor' | ||
*/ | ||
run (...parameters): Promise<any> { | ||
run (...parameters: any[]): Promise<any> { | ||
if (!this.isRunning) { | ||
@@ -19,0 +19,0 @@ const promise = super.run(...parameters) |
import LadderExecutor from '../Executors/LadderExecutor' | ||
type PointerRequest = (pointer: number, perStep: number) => Promise<any[]> | ||
export type PointerRequest = (pointer: number, perStep: number) => Promise<any[]> | ||
@@ -5,0 +5,0 @@ export default class InfiniteLoader { |
@@ -18,6 +18,6 @@ { | ||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ | ||
// "declaration": true, /* Generates corresponding '.d.ts' file. */ | ||
"declaration": true, /* Generates corresponding '.d.ts' file. */ | ||
"sourceMap": true, /* Generates corresponding '.map' file. */ | ||
// "outFile": "./", /* Concatenate and emit output to single file. */ | ||
// "outDir": "./", /* Redirect output structure to the directory. */ | ||
// "outFile": "./", /* Concatenate and emit output to single file. */ | ||
// "outDir": "./", /* Redirect output structure to the directory. */ | ||
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ | ||
@@ -31,4 +31,4 @@ // "removeComments": true, /* Do not emit comments to output. */ | ||
/* Strict Type-Checking Options */ | ||
// "strict": true /* Enable all strict type-checking options. */ | ||
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ | ||
"strict": true, /* Enable all strict type-checking options. */ | ||
// "noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */ | ||
// "strictNullChecks": true, /* Enable strict null checks. */ | ||
@@ -35,0 +35,0 @@ // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ |
35444
29
757