@rbxts/planck-flamecs-hooks
Version:
A @rbxts/planck plugin that provides support for @rbxts/flamecs hooks.
12 lines (11 loc) • 545 B
TypeScript
import { Modding } from "@flamework/core";
/**
*
* @param callback - The function to memoize.
* @param dependencies - An array of values to compare against the previous dependencies.
* @param discriminator - An optional value to additionally key by.
* @param key - An automatically generated key to store the memoized value.
* @returns The memoized value.
* @metadata macro
*/
export declare function useMemo<T extends unknown>(callback: () => T, dependencies?: Array<unknown>, discriminator?: unknown, key?: Modding.Caller<"uuid">): T;