Skip to content

tsc error #2

@atsukoba

Description

@atsukoba
../../../node_modules/@types/webgl2/index.d.ts:582:13 - error TS2403: Subsequent variable declarations must have the same type.  Variable ‘WebGL2RenderingContext’ must be of type ‘{ new (): WebGL2RenderingContext; prototype: WebGL2RenderingContext; readonly ACTIVE_ATTRIBUTES: number; readonly ACTIVE_TEXTURE: number; ... 556 more ...; readonly WAIT_FAILED: number; }‘, but here has type ‘{ new (): WebGL2RenderingContext; prototype: WebGL2RenderingContext; readonly ACTIVE_ATTRIBUTES: number; readonly ACTIVE_TEXTURE: number; ... 557 more ...; readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: number; }’.
582 declare var WebGL2RenderingContext: {
                ~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../usr/local/lib/node_modules/typescript/lib/lib.dom.d.ts:16485:13
    16485 declare var WebGL2RenderingContext: {
                      ~~~~~~~~~~~~~~~~~~~~~~
    ‘WebGL2RenderingContext’ was also declared here.
../../../../../usr/local/lib/node_modules/typescript/lib/lib.dom.d.ts:16482:11 - error TS2430: Interface ‘WebGL2RenderingContext’ incorrectly extends interface ‘WebGL2RenderingContextBase’.
  Types of property ‘clearBufferfv’ are incompatible.
    Type ‘(buffer: number, drawbuffer: number, values: ArrayLike<number> | Float32Array, srcOffset?: number) => void’ is not assignable to type ‘{ (buffer: number, drawbuffer: number, values: Float32List, srcOffset?: number): void; (buffer: number, drawbuffer: number, values: Iterable<number>, srcOffset?: number): void; }’.
      Types of parameters ‘values’ and ‘values’ are incompatible.
        Type ‘Iterable<number>’ is not assignable to type ‘ArrayLike<number> | Float32Array’.
          Type ‘Iterable<number>’ is missing the following properties from type ‘Float32Array’: BYTES_PER_ELEMENT, buffer, byteLength, byteOffset, and 25 more.
16482 interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
                ~~~~~~~~~~~~~~~~~~~~~~
../../../../../usr/local/lib/node_modules/typescript/lib/lib.dom.d.ts:16482:11 - error TS2430: Interface ‘WebGL2RenderingContext’ incorrectly extends interface ‘WebGL2RenderingContextOverloads’.
  Types of property ‘uniform1fv’ are incompatible.
    Type ‘(location: WebGLUniformLocation, data: ArrayLike<number> | Float32Array, srcOffset?: number, srcLength?: number) => void’ is not assignable to type ‘{ (location: WebGLUniformLocation, data: Float32List, srcOffset?: number, srcLength?: number): void; (location: WebGLUniformLocation, data: Iterable<...>, srcOffset?: number, srcLength?: number): void; }’.
      Types of parameters ‘data’ and ‘data’ are incompatible.
        Type ‘Iterable<number>’ is not assignable to type ‘ArrayLike<number> | Float32Array’.
          Type ‘Iterable<number>’ is not assignable to type ‘Float32Array’.
16482 interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
                ~~~~~~~~~~~~~~~~~~~~~~
../../../../../usr/local/lib/node_modules/typescript/lib/lib.dom.d.ts:16482:11 - error TS2430: Interface ‘WebGL2RenderingContext’ incorrectly extends interface ‘WebGLRenderingContext’.
  Types of property ‘uniform1fv’ are incompatible.
    Type ‘(location: WebGLUniformLocation, data: ArrayLike<number> | Float32Array, srcOffset?: number, srcLength?: number) => void’ is not assignable to type ‘{ (location: WebGLUniformLocation, v: Float32List): void; (location: WebGLUniformLocation, v: Iterable<number>): void; }’.
      Types of parameters ‘data’ and ‘v’ are incompatible.
        Type ‘Iterable<number>’ is not assignable to type ‘ArrayLike<number> | Float32Array’.
          Type ‘Iterable<number>’ is not assignable to type ‘Float32Array’.
16482 interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
                ~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions