updux/types/index.test-d.js
2021-10-15 12:41:58 -04:00

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