updux/types/index.test-d.ts

15 lines
263 B
TypeScript
Raw Normal View History

2021-10-12 17:11:32 +00:00
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);
}