Browse Source

TS: Added `undefined` as `.defines` member

`.defines` is not declared at https://github.com/mrdoob/three.js/blob/dev/src/materials/Material.js, so it is optional.
ycw 4 years ago
parent
commit
83aab4cc96
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/materials/Material.d.ts

+ 1 - 1
src/materials/Material.d.ts

@@ -139,7 +139,7 @@ export class Material extends EventDispatcher {
 	 * The pairs are defined in both vertex and fragment shaders. Default is undefined.
 	 * The pairs are defined in both vertex and fragment shaders. Default is undefined.
 	 * @default undefined
 	 * @default undefined
 	 */
 	 */
-	defines: { [key: string]: any };
+	defines: undefined | { [key: string]: any };
 
 
 	/**
 	/**
 	 * Which depth function to use. Default is {@link LessEqualDepth}. See the depth mode constants for all possible values.
 	 * Which depth function to use. Default is {@link LessEqualDepth}. See the depth mode constants for all possible values.