Skip to content

Commit

Permalink
docs(useWindowSize): add type comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred-Skyblue committed May 28, 2024
1 parent 41d041c commit f463b8b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/useWindowSize/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ import type { ConfigurableWindow } from '../_configurable'
import { defaultWindow } from '../_configurable'

export interface UseWindowSizeOptions extends ConfigurableWindow {
/**
* 初始宽度
*/
initialWidth?: number
/**
* 初始高度
*/
initialHeight?: number
/**
* 监听窗口 `orientationchange` 事件
Expand Down

0 comments on commit f463b8b

Please sign in to comment.