15 lines
263 B
TypeScript
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);
|
||
|
}
|