Przeglądaj źródła

Merge pull request #20356 from ycw/patch-1

TS: Added `undefined` as `.defines` member
Mr.doob 4 lat temu
rodzic
commit
bf67ea6636
1 zmienionych plików z 1 dodań i 1 usunięć
  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.