18 lines
441 B
JavaScript
18 lines
441 B
JavaScript
import { expectAssignable, expectType } from 'tsd';
|
|
import { Updux, action } from '.';
|
|
const dux = new Updux({});
|
|
expectType(dux.initial);
|
|
() => {
|
|
const dux = new Updux({});
|
|
expectAssignable(dux);
|
|
};
|
|
// ActionGenerator
|
|
() => {
|
|
let a = action('a');
|
|
expectAssignable(a);
|
|
expectAssignable(a);
|
|
let b = action('b', (() => ({})));
|
|
const c = b("foo");
|
|
expectAssignable(c);
|
|
};
|
|
//# sourceMappingURL=index.test-d.js.map
|