build
This commit is contained in:
parent
a6b83bbfa0
commit
1642bab09a
2
dist/buildMutations/test.d.ts
vendored
Normal file
2
dist/buildMutations/test.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=test.d.ts.map
|
1
dist/buildMutations/test.d.ts.map
vendored
Normal file
1
dist/buildMutations/test.d.ts.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/buildMutations/test.ts"],"names":[],"mappings":""}
|
13
dist/buildMutations/test.js
vendored
Normal file
13
dist/buildMutations/test.js
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const _1 = __importDefault(require("."));
|
||||
const actions = {
|
||||
multiply: (factor) => ({ factor }),
|
||||
};
|
||||
const mutations = _1.default({
|
||||
multiply: ({ factor }) => ({ counter }) => factor * counter,
|
||||
});
|
||||
//# sourceMappingURL=test.js.map
|
1
dist/buildMutations/test.js.map
vendored
Normal file
1
dist/buildMutations/test.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../src/buildMutations/test.ts"],"names":[],"mappings":";;;;;AAAA,yCAA+B;AAE/B,MAAM,OAAO,GAAG;IACZ,QAAQ,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,EAAC,MAAM,EAAC,CAAC;CAC3C,CAAC;AAEF,MAAM,SAAS,GAAG,UAAc,CAC5B;IACI,QAAQ,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,CAAC,EAAC,OAAO,EAAC,EAAE,EAAE,CAAC,MAAM,GAAG,OAAO;CAC1D,CACJ,CAAC"}
|
2
dist/index.d.ts
vendored
2
dist/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
import Updux from './updux';
|
||||
import { UpduxConfig } from './types';
|
||||
export default function updux(config: UpduxConfig): Updux<any>;
|
||||
export default function updux<S = any>(config: UpduxConfig<S>): Updux<S>;
|
||||
//# sourceMappingURL=index.d.ts.map
|
2
dist/index.d.ts.map
vendored
2
dist/index.d.ts.map
vendored
@ -1 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,MAAM,EAAE,WAAW,cAEhD"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,CAAC,GAAC,GAAG,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,YAE1D"}
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAGA,oDAA4B;AAI5B,SAAwB,KAAK,CAAC,MAAmB;IAC/C,OAAO,IAAI,eAAK,CAAC,MAAM,CAAC,CAAC;AAC3B,CAAC;AAFD,wBAEC"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAGA,oDAA4B;AAI5B,SAAwB,KAAK,CAAQ,MAAsB;IACzD,OAAO,IAAI,eAAK,CAAI,MAAM,CAAC,CAAC;AAC9B,CAAC;AAFD,wBAEC"}
|
4
dist/test.js
vendored
4
dist/test.js
vendored
@ -25,7 +25,7 @@ test('reducer', () => {
|
||||
inc: () => ({ counter }) => ({ counter: counter + 1 }),
|
||||
},
|
||||
});
|
||||
let state = reducer(null, { type: 'noop' });
|
||||
let state = reducer(undefined, { type: 'noop' });
|
||||
expect(state).toEqual({ counter: 1 });
|
||||
state = reducer(state, actions.inc());
|
||||
expect(state).toEqual({ counter: 2 });
|
||||
@ -89,7 +89,7 @@ test('precedence between root and sub-reducers', () => {
|
||||
expect(initial).toEqual({
|
||||
foo: { bar: 4, quux: 3 }
|
||||
});
|
||||
expect(reducer(null, actions.inc())).toEqual({
|
||||
expect(reducer(undefined, actions.inc())).toEqual({
|
||||
foo: { bar: 5, quux: 3 }, surprise: 5
|
||||
});
|
||||
});
|
||||
|
2
dist/test.js.map
vendored
2
dist/test.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user