updux/types/index.test-d.js

18 lines
441 B
JavaScript
Raw Normal View History

2021-10-15 16:41:58 +00:00
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