@react-three/fiber 8.17.7 → 8.17.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -38,7 +38,9 @@ export interface NodeProps<T, P> {
|
|
|
38
38
|
export declare type ExtendedColors<T> = {
|
|
39
39
|
[K in keyof T]: T[K] extends THREE.Color | undefined ? Color : T[K];
|
|
40
40
|
};
|
|
41
|
-
export declare type Node<T, P> =
|
|
41
|
+
export declare type Node<T, P> = [T] extends [{
|
|
42
|
+
thisShouldNeverHappen: 'unless the object is of type any';
|
|
43
|
+
}] ? ExtendedColors<Overwrite<Partial<{}>, NodeProps<{}, {}>>> : ExtendedColors<Overwrite<Partial<T>, NodeProps<T, P>>>;
|
|
42
44
|
export declare type Object3DNode<T, P> = Overwrite<Node<T, P>, {
|
|
43
45
|
position?: Vector3;
|
|
44
46
|
up?: Vector3;
|