@react-three/drei 10.4.1 → 10.4.3

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.
Files changed (2) hide show
  1. package/core/Fbo.d.ts +2 -2
  2. package/package.json +1 -1
package/core/Fbo.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import * as THREE from 'three';
3
3
  type WebGLRenderTargetCtorParams = ConstructorParameters<typeof THREE.WebGLRenderTarget>;
4
- type WebGLRenderTargetOptions = WebGLRenderTargetCtorParams[2];
4
+ type WebGLRenderTargetOptions = NonNullable<WebGLRenderTargetCtorParams[2]>;
5
5
  type FBOSettings = {
6
6
  depth?: boolean;
7
7
  } & WebGLRenderTargetOptions;
8
- export declare function useFBO(width?: number | FBOSettings, height?: number, settings?: FBOSettings): THREE.WebGLRenderTarget;
8
+ export declare function useFBO(width?: number | FBOSettings, height?: number, settings?: FBOSettings): THREE.WebGLRenderTarget<THREE.Texture>;
9
9
  type UseFBOParams = Parameters<typeof useFBO>;
10
10
  type Fbo = ReturnType<typeof useFBO>;
11
11
  export type FboProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/drei",
3
- "version": "10.4.1",
3
+ "version": "10.4.3",
4
4
  "private": false,
5
5
  "description": "useful add-ons for react-three-fiber",
6
6
  "keywords": [