@threlte/core
Advanced tools
Comparing version 8.0.0-next.37 to 8.0.0-next.38
import type { Snippet } from 'svelte'; | ||
import type { Object3D } from 'three'; | ||
import type { DisposableObject } from '../../context/fragments/disposal'; | ||
/** Inlined from type-fest */ | ||
@@ -34,2 +33,6 @@ type ConditionalKeys<Base, Condition> = { | ||
}]> = { | ||
/** | ||
* If true, the object will be deeply disposed when the component unmounts. | ||
*/ | ||
dispose?: boolean; | ||
attach?: string | Object3D | ((args: { | ||
@@ -44,13 +47,2 @@ ref: Type; | ||
/** | ||
* ### Disposable Props | ||
*/ | ||
export type DisposableProps<Type> = MaybeInstance<Type> extends DisposableObject ? { | ||
/** | ||
* If true, the object will be deeply disposed when the component unmounts. | ||
*/ | ||
dispose?: boolean; | ||
} : { | ||
dispose?: never; | ||
}; | ||
/** | ||
* ### Class Props | ||
@@ -122,3 +114,3 @@ */ | ||
ref: MaybeInstance<Type>; | ||
}]> = AnyProps & DisposableProps<Type> & RefProps<Type> & BaseProps<Type, ChildrenArgs> & ClassProps<Type> & CameraProps<Type> & InstanceProps<Type> & EventProps<Type> & Threlte.UserProps; | ||
}]> = AnyProps & RefProps<Type> & BaseProps<Type, ChildrenArgs> & ClassProps<Type> & CameraProps<Type> & InstanceProps<Type> & EventProps<Type> & Threlte.UserProps; | ||
/** | ||
@@ -125,0 +117,0 @@ * ### `TProps<Type>` |
{ | ||
"name": "@threlte/core", | ||
"version": "8.0.0-next.37", | ||
"version": "8.0.0-next.38", | ||
"author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
143053
3744