Skip to content

Commit

Permalink
fix(react): export types
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Nov 26, 2020
1 parent 979eec1 commit dcf584f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/react/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,21 @@ export * from './useValidator'
// @endindex

// 与 react-use 同名的应手动指定导出的模块
export { useToggle, UseToggleResult } from './useToggle'
export {
createGlobalState,
export { useToggle } from './useToggle'
export type { UseToggleResult } from './useToggle'
export { createGlobalState } from './createGlobalState'
export type {
CreateGlobalStateResult,
CreateGlobalStateCustomResult,
CreateGlobalStateResultResult,
CreateGlobalStateState,
} from './createGlobalState'
export { useTitle } from './useTitle'
export { useInterval, UseIntervalResult } from './useInterval'
export { useInterval } from './useInterval'
export type { UseIntervalResult } from './useInterval'
export { useSearchParam } from './useSearchParam'
export { useLocalStorage, UseLocalStorageResult } from './useLocalStorage'
export { useLocalStorage } from './useLocalStorage'
export type { UseLocalStorageResult } from './useLocalStorage'
export { useWindowSize } from './useWindowSize'
export { useHover, UseHoverOptions, UseHoverResult } from './useHover'
export { useHover } from './useHover'
export type { UseHoverOptions, UseHoverResult } from './useHover'

0 comments on commit dcf584f

Please sign in to comment.