wip: improve options typing

This commit is contained in:
Evan You
2019-09-05 16:09:30 -04:00
parent 369b9eb583
commit 9b90e673e8
6 changed files with 192 additions and 45 deletions

View File

@@ -32,7 +32,7 @@ type MapSources<T> = {
[K in keyof T]: T[K] extends WatcherSource<infer V> ? V : never
}
type CleanupRegistrator = (invalidate: () => void) => void
export type CleanupRegistrator = (invalidate: () => void) => void
type SimpleEffect = (onCleanup: CleanupRegistrator) => void