@rbxts/pretty-react-hooks
Version:
Useful hooks for @rbxts/react
8 lines (7 loc) • 418 B
TypeScript
/// <reference types="@rbxts/compiler-types" />
/// <reference types="react" />
/// <reference types="ripple" />
import type { Binding } from "@rbxts/react";
import type { Motion, MotionGoal } from "@rbxts/ripple";
export declare function useMotion(initialValue: number): LuaTuple<[Binding<number>, Motion]>;
export declare function useMotion<T extends MotionGoal>(initialValue: T): LuaTuple<[Binding<T>, Motion<T>]>;