add type for function updux
This commit is contained in:
parent
52649b6b07
commit
23312d2f15
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user