UNPKG

@rbxts/pretty-react-hooks

Version:
7 lines (6 loc) 299 B
/** * 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>;