Skip to content

Commit

Permalink
Add | undefined where appropriate (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Nov 30, 2023
1 parent 049b9fd commit 061717a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions types/three/examples/jsm/math/Octree.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion types/three/examples/jsm/renderers/common/Renderer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>;

Expand Down
6 changes: 3 additions & 3 deletions types/three/examples/jsm/utils/SortUtils.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export interface RadixSortOptions<T> {
aux?: T[];
get?: (el: T) => number;
reversed?: boolean;
aux?: T[] | undefined;
get?: ((el: T) => number) | undefined;
reversed?: boolean | undefined;
}

export const radixSort: <T = number>(arr: T[], opt?: RadixSortOptions<T>) => void;

0 comments on commit 061717a

Please sign in to comment.