Accepted baselines.

This commit is contained in:
Daniel Rosenwasser
2019-04-03 17:09:37 -07:00
parent 1dae8fcc30
commit e8feaf9a3e
9 changed files with 26 additions and 7 deletions

View File

@@ -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);

View File

@@ -152,3 +152,6 @@ const myStoreConnect: Connect = function(
);
};
export {};

View File

@@ -90,3 +90,6 @@ const myStoreConnect: Connect = function(
);
};
export {};

View File

@@ -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: '' };

View File

@@ -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))

View File

@@ -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

View File

@@ -143,6 +143,8 @@ const Test1 = connect(
null,
mapDispatchToProps
)(TestComponent);
export {};
//// [reactReduxLikeDeferredInferenceAllowsAssignment.js]
@@ -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

View File

@@ -469,3 +469,5 @@ const Test1 = connect(
)(TestComponent);
>TestComponent : Symbol(TestComponent, Decl(reactReduxLikeDeferredInferenceAllowsAssignment.ts, 134, 1))
export {};

View File

@@ -286,3 +286,5 @@ const Test1 = connect(
)(TestComponent);
>TestComponent : typeof TestComponent
export {};