updux/types/index.test-d.ts
2021-10-12 13:11:32 -04:00

15 lines
263 B
TypeScript

import { printType, expectAssignable, expectType } from 'tsd';
import { Updux } from '.';
const dux = new Updux({});
expectType<unknown>( dux.initial );
() => {
const dux = new Updux<{a: string}>({});
expectAssignable<{initial: {a:string}}>(dux);
}