Skip to content

Commit

Permalink
Improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Rigaud committed Dec 11, 2024
1 parent 3c1fb02 commit c1fbee9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/nodes/display/PassNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class PassNode extends TempNode {
* A dictionary holding the internal result textures.
*
* @private
* @type {Record<string, Texture>}
* @type {Object<string, Texture>}
*/
this._textures = {
output: renderTarget.texture,
Expand All @@ -253,7 +253,7 @@ class PassNode extends TempNode {
* A dictionary holding the internal texture nodes.
*
* @private
* @type {Record<string, TextureNode>}
* @type {Object<string, TextureNode>}
*/
this._textureNodes = {};

Expand All @@ -278,7 +278,7 @@ class PassNode extends TempNode {
* Used for computing velocity/motion vectors.
*
* @private
* @type {Record<string, Texture>}
* @type {Object<string, Texture>}
*/
this._previousTextures = {};

Expand All @@ -287,7 +287,7 @@ class PassNode extends TempNode {
* Used for computing velocity/motion vectors.
*
* @private
* @type {Record<string, TextureNode>}
* @type {Object<string, TextureNode>}
*/
this._previousTextureNodes = {};

Expand Down
2 changes: 1 addition & 1 deletion src/nodes/display/ViewportDepthNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ViewportDepthNode extends Node {
* Can be used to define a custom depth value.
* The property is ignored in the `ViewportDepthNode.DEPTH` scope.
*
* @type {Node|null}
* @type {Node?}
* @default null
*/
this.valueNode = valueNode;
Expand Down

0 comments on commit c1fbee9

Please sign in to comment.