浏览代码

Merge pull request #20356 from ycw/patch-1

TS: Added `undefined` as `.defines` member
Mr.doob 4 年之前
父节点
当前提交
bf67ea6636
共有 1 个文件被更改,包括 1 次插入1 次删除
  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.