Skip to content

USVString type definition #28775

Open
Open
@hasbel

Description

@hasbel

TypeScript Version: 3.2.0-dev.201xxxxx

Search Terms:
USVString

Code

function example(uri: USVString) {
    // Do some work
}

Expected behavior:
Until typescript version 3.0.3 USVString used to be an existing type defined in lib.dom.d.ts
in version 3.1, according to the breaking changes page, some vendor-specific types are removed from lib.d.ts, a full list of removed types is included.
USVString is not on that list, yet it's type definition was also removed.

USVString is defined under webIDL, as can be seen here.

Actual behavior:
error TS2304: Cannot find name 'USVString'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureBreaking ChangeWould introduce errors in existing codeDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions