Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
izatop committed Sep 9, 2020
1 parent 6854310 commit f3095bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/unit/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface IActionHooks<C extends Context, S = null, T = any> {

export type ActionHooks<A> = A extends Action<infer X, infer S, infer T>
? IActionHooks<X, S, T>
: A extends ActionCtor<infer C>
: A extends ActionCtor<any>
? A extends Action<infer X, infer S, infer T>
? IActionHooks<X, S, T>
: never
Expand Down
2 changes: 1 addition & 1 deletion packages/util/src/Transform/TransformInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Promisify} from "../interfaces";
import {isArray, isFunction, isObject} from "../is";
import {JSONInput, Transformable, TransformOut, TransformSchema} from "./interfaces";

export class TransformInput<T, K extends keyof T> {
export class TransformInput {
public static transform<T extends Transformable>(data: JSONInput<T>,
scheme: TransformSchema<T>): Promise<TransformOut<T>>;

Expand Down
2 changes: 1 addition & 1 deletion packages/util/src/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function safe<A extends any[], R extends Promise<any>>(fn: (...args: A) =
};
}

export function isolate<A extends any[], R>(fn: (...args: A) => any) {
export function isolate<A extends any[]>(fn: (...args: A) => any) {
return (...args: A): void => {
process.nextTick(() => fn(...args));
};
Expand Down

0 comments on commit f3095bc

Please sign in to comment.