Skip to content

Commit 0db90fb

Browse files
committed
fix typescript 2.2 build
1 parent 018f321 commit 0db90fb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/resolve/interface.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,7 @@ export interface ResolvePolicy {
201201

202202
export type PolicyWhen = 'LAZY' | 'EAGER';
203203
export type PolicyAsync = 'WAIT' | 'NOWAIT' | CustomAsyncPolicy;
204-
export type CustomAsyncPolicy = <TResolveFnResult = any, TResolveValue = any>(
205-
data: TResolveFnResult
206-
) => Promise<TResolveValue>;
204+
export type CustomAsyncPolicy = <TResolveFnResult, TResolveValue>(data: TResolveFnResult) => Promise<TResolveValue>;
207205

208206
/** @internalapi */
209207
export let resolvePolicies = {

test/resolveSpec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ describe('Resolvables system:', function() {
642642
describe('custom Resolve Policy', () => {
643643
let customResolvePolicy: CustomAsyncPolicy;
644644

645-
fit('should wait for the promise to resolve before finishing the transition', async done => {
645+
it('should wait for the promise to resolve before finishing the transition', async done => {
646646
let resolve: (value: string) => void;
647647

648648
const resolvePromise: Promise<string> = new Promise(_resolve => {

0 commit comments

Comments
 (0)