Skip to content

Commit

Permalink
fix(noImplicitAny): Fix noimplicitany compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Mar 14, 2017
1 parent fe8505e commit 1a6cdfc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/common/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ function _arraysEq(a1: any[], a2: any[]) {
return arrayTuples(a1, a2).reduce((b, t) => b && _equals(t[0], t[1]), true);
}

export type sortfn = (a,b) => number;
export type sortfn = (a: any, b: any) => number;

/**
* Create a sort function
Expand Down
2 changes: 1 addition & 1 deletion src/resolve/resolveContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const when = resolvePolicies.when;
const ALL_WHENS = [when.EAGER, when.LAZY];
const EAGER_WHENS = [when.EAGER];

export const NATIVE_INJECTOR_TOKEN = "Native Injector";
export const NATIVE_INJECTOR_TOKEN: string = "Native Injector";

/**
* Encapsulates Dependency Injection for a path of nodes
Expand Down
10 changes: 5 additions & 5 deletions src/transition/transitionHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ let defaultOptions: TransitionHookOptions = {
export type GetResultHandler = (hook: TransitionHook) => ResultHandler;
export type GetErrorHandler = (hook: TransitionHook) => ErrorHandler;

export type ResultHandler = (result: HookResult) => Promise<HookResult>;
export type ErrorHandler = (error) => Promise<any>;
export type ResultHandler = (result: HookResult) => Promise<HookResult>;
export type ErrorHandler = (error: any) => Promise<any>;

/** @hidden */
export class TransitionHook {
Expand Down Expand Up @@ -62,13 +62,13 @@ export class TransitionHook {
* These GetErrorHandler(s) are used by [[invokeHook]] below
* Each HookType chooses a GetErrorHandler (See: [[TransitionService._defineCoreEvents]])
*/
static LOG_ERROR: GetErrorHandler = (hook: TransitionHook) => (error) =>
static LOG_ERROR: GetErrorHandler = (hook: TransitionHook) => (error: any) =>
hook.logError(error);

static REJECT_ERROR: GetErrorHandler = (hook: TransitionHook) => (error) =>
static REJECT_ERROR: GetErrorHandler = (hook: TransitionHook) => (error: any) =>
silentRejection(error);

static THROW_ERROR: GetErrorHandler = (hook: TransitionHook) => (error) => {
static THROW_ERROR: GetErrorHandler = (hook: TransitionHook) => (error: any) => {
throw error;
};

Expand Down
2 changes: 1 addition & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"no-trailing-comma": true,
"no-trailing-whitespace": false,
"no-unreachable": true,
"no-unused-expression": true,
"no-unused-expression": [true, "allow-fast-null-checks"],
"no-unused-variable": true,
"no-use-before-declare": true,
"no-var-keyword": true,
Expand Down

0 comments on commit 1a6cdfc

Please sign in to comment.