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';
export default function updux(config: UpduxConfig) {
return new Updux(config);
export default function updux<S=any>(config: UpduxConfig<S>) {
return new Updux<S>(config);
}