add type for function updux

This commit is contained in:
Yanick Champoux 2019-10-28 18:09:14 -04:00
parent 52649b6b07
commit 23312d2f15

View File

@ -5,6 +5,6 @@ import Updux from './updux';
import { UpduxConfig } from './types'; import { UpduxConfig } from './types';
export default function updux(config: UpduxConfig) { export default function updux<S=any>(config: UpduxConfig<S>) {
return new Updux(config); return new Updux<S>(config);
} }