@rbxts/pretty-react-hooks
Version:
Useful hooks for @rbxts/react
7 lines (6 loc) • 299 B
TypeScript
/**
* Returns the current viewport size of the camera.
* @param listener Optional listener to be called when the viewport changes.
* @returns A binding to the viewport size.
*/
export declare function useViewport(listener?: (viewport: Vector2) => void): import("@rbxts/react").Binding<Vector2>;