UNPKG

@threlte/theatre

Version:

Threlte Components for Theatre, an animation library with a professional motion design toolset

14 lines (13 loc) 571 B
import type { ISheetObject, UnknownShorthandCompoundProps } from '@theatre/core'; type PropsValue<Props extends UnknownShorthandCompoundProps> = Parameters<Parameters<ISheetObject<Props>['onValuesChange']>[0]>[0]; export declare function createSheetObjectAction<Props extends UnknownShorthandCompoundProps>(): <T extends HTMLElement>(node: T, { key, props, callback, options }: { key: string; props: Props; callback: (node: T, props: PropsValue<Props>) => void; options?: { reconfigure?: boolean; }; }) => { destroy(): void; }; export {};