Skip to content

TS3.0-RC - VRLayer left/rightBounds type. #26038

@cmerighi

Description

@cmerighi

TypeScript Version: 3.0.0-rc
VRLayer type described in 3.0rc's lib.dom.d.ts conflicts with the one in @types/webvr-api. The latter is a devDependency for the widely used @types/three.

VRLayer in lib.dom.d.ts:

interface VRLayer {
    leftBounds?: number[] | Float32Array | null;
    rightBounds?: number[] | Float32Array | null;
    source?: HTMLCanvasElement | null;
}

VRLayer in @types/webvr_api/index.d.ts:

interface VRLayer {
    leftBounds?: number[] | null;
    rightBounds?: number[] | null;
    source?: HTMLCanvasElement | null;
}

Looking at the specs, including Float32Array among the piped types seems unnecessary/wrong to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions