UNPKG

@threlte/theatre

Version:

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

10 lines (9 loc) 385 B
import type { ISheetObject, UnknownShorthandCompoundProps } from '@theatre/core'; import type { Snippet } from 'svelte'; export type DeclareProps<T extends UnknownShorthandCompoundProps> = { props: T; children?: Snippet<[{ values: ISheetObject<T>['value']; }]>; }; export type Values<T> = T extends UnknownShorthandCompoundProps ? ISheetObject<T>['value'] : never;