diff --git a/three/index.d.ts b/three/index.d.ts index 3fa2c60b12..9e1cccd0b7 100644 --- a/three/index.d.ts +++ b/three/index.d.ts @@ -2737,7 +2737,7 @@ declare namespace THREE { constructor(parameters?: ShaderMaterialParameters); defines: any; - uniforms: any; // type should be { [uniform: string]: { value: any }; }; but gives "Index signature is missing in type" error during compilation + uniforms: { [uniform: string]: IUniform }; vertexShader: string; fragmentShader: string; linewidth: number; @@ -5115,7 +5115,7 @@ declare namespace THREE { }; export interface Shader { - uniforms: IUniform; + uniforms: { [uniform: string]: IUniform }; vertexShader: string; fragmentShader: string; }