8000 Navigator interface no longer extends MSFileSaver · Issue #45612 · microsoft/TypeScript · GitHub
[go: up one dir, main page]

Skip to content
Navigator interface no longer extends MSFileSaver #45612
@jrmcpeek

Description

@jrmcpeek

Bug Report

Recent changes to the Navigator interface for 4.4 removed previous extensions; however, the previously extended type is still present in lib.dom.d.ts and should be added back to the interface.

🔎 Search Terms

Navigator, MSFileSaver, msSaveBlob, msSaveOrOpenBlob

🕗 Version & Regression Information

Injected starting with 9d443b7

  • This prevents building

⏯ Playground Link

Playground link with relevant code

💻 Code

if (window.navigator.msSaveBlob) {
    console.log("Type works!")
}

if (window.navigator.msSaveOrOpenBlob) {
    console.log("Type works!")
}

🙁 Actual behavior

TS2339: Property 'msSaveOrOpenBlob' does not exist on type 'Navigator'.
TS2339: Property 'msSaveBlob' does not exist on type 'Navigator'.

🙂 Expected behavior

Appropriately typed file continues to build as it did previously.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptWorking as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0