Explorar el Código

Merge pull request #20356 from ycw/patch-1

TS: Added `undefined` as `.defines` member
Mr.doob hace 5 años
padre
commit
bf67ea6636
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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.
 	 * @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.