Skip to content

Commit

Permalink
Accepted baselines.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser committed Apr 4, 2019
1 parent 1dae8fc commit e8feaf9
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ const myStoreConnect: Connect = function(
mergeProps,
options,
);
};
};

export {};


//// [circularlySimplifyingConditionalTypesNoCrash.js]
"use strict";
exports.__esModule = true;
var myStoreConnect = function (mapStateToProps, mapDispatchToProps, mergeProps, options) {
if (options === void 0) { options = {}; }
return connect(mapStateToProps, mapDispatchToProps, mergeProps, options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,6 @@ const myStoreConnect: Connect = function(

);
};

export {};

Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,6 @@ const myStoreConnect: Connect = function(

);
};

export {};

Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ type Omit1<U, K extends keyof U> = Pick<U, Diff<keyof U, K>>;
type Omit2<T, K extends keyof T> = {[P in Diff<keyof T, K>]: T[P]};

type O = Omit<{ a: number, b: string }, 'a'>
const o: O = { b: '' }
export const o: O = { b: '' }


//// [indexedAccessRetainsIndexSignature.js]
var o = { b: '' };
"use strict";
exports.__esModule = true;
exports.o = { b: '' };
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ type O = Omit<{ a: number, b: string }, 'a'>
>a : Symbol(a, Decl(indexedAccessRetainsIndexSignature.ts, 8, 15))
>b : Symbol(b, Decl(indexedAccessRetainsIndexSignature.ts, 8, 26))

const o: O = { b: '' }
>o : Symbol(o, Decl(indexedAccessRetainsIndexSignature.ts, 9, 5))
export const o: O = { b: '' }
>o : Symbol(o, Decl(indexedAccessRetainsIndexSignature.ts, 9, 12))
>O : Symbol(O, Decl(indexedAccessRetainsIndexSignature.ts, 6, 67))
>b : Symbol(b, Decl(indexedAccessRetainsIndexSignature.ts, 9, 14))
>b : Symbol(b, Decl(indexedAccessRetainsIndexSignature.ts, 9, 21))

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type O = Omit<{ a: number, b: string }, 'a'>
>a : number
>b : string

const o: O = { b: '' }
export const o: O = { b: '' }
>o : Pick<{ a: number; b: string; }, "b">
>{ b: '' } : { b: string; }
>b : string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ const Test1 = connect(
null,
mapDispatchToProps
)(TestComponent);

export {};


//// [reactReduxLikeDeferredInferenceAllowsAssignment.js]
Expand Down Expand Up @@ -196,6 +198,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
}
};
var _this = this;
exports.__esModule = true;
var simpleAction = function (payload) { return ({
type: "SIMPLE_ACTION",
payload: payload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,3 +469,5 @@ const Test1 = connect(
)(TestComponent);
>TestComponent : Symbol(TestComponent, Decl(reactReduxLikeDeferredInferenceAllowsAssignment.ts, 134, 1))

export {};

Original file line number Diff line number Diff line change
Expand Up @@ -286,3 +286,5 @@ const Test1 = connect(
)(TestComponent);
>TestComponent : typeof TestComponent

export {};

0 comments on commit e8feaf9

Please sign in to comment.