diff --git a/types/three/examples/jsm/math/Octree.d.ts b/types/three/examples/jsm/math/Octree.d.ts index b733a045a..0d9e1359f 100644 --- a/types/three/examples/jsm/math/Octree.d.ts +++ b/types/three/examples/jsm/math/Octree.d.ts @@ -3,13 +3,13 @@ import { Triangle, Box3, Ray, Sphere, Object3D } from '../../../src/Three.js'; import { Capsule } from './Capsule.js'; export class Octree { - box: Box3; + box: Box3 | null | undefined; bounds: Box3; subTrees: Octree[]; triangles: Triangle[]; - constructor(box?: Box3); + constructor(box?: Box3 | null); addTriangle(triangle: Triangle): this; calcBox(): this; diff --git a/types/three/examples/jsm/renderers/common/Renderer.d.ts b/types/three/examples/jsm/renderers/common/Renderer.d.ts index b4e93840f..ca4a23472 100644 --- a/types/three/examples/jsm/renderers/common/Renderer.d.ts +++ b/types/three/examples/jsm/renderers/common/Renderer.d.ts @@ -26,7 +26,7 @@ export default class Renderer { info: Info; - constructor(backend: Backend, parameters?: { logarithmicDepthBuffer?: boolean }); + constructor(backend: Backend, parameters?: { logarithmicDepthBuffer?: boolean | undefined }); init(): Promise; diff --git a/types/three/examples/jsm/utils/SortUtils.d.ts b/types/three/examples/jsm/utils/SortUtils.d.ts index 9aa2697c3..f8ceb81c2 100644 --- a/types/three/examples/jsm/utils/SortUtils.d.ts +++ b/types/three/examples/jsm/utils/SortUtils.d.ts @@ -1,7 +1,7 @@ export interface RadixSortOptions { - aux?: T[]; - get?: (el: T) => number; - reversed?: boolean; + aux?: T[] | undefined; + get?: ((el: T) => number) | undefined; + reversed?: boolean | undefined; } export const radixSort: (arr: T[], opt?: RadixSortOptions) => void;