Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

"window" and "e.target" have type issues #405

@akaFTS

Description

@akaFTS

Two very common use cases in React are reporting type issues on Aleph/Deno. The first one is window.open:

  window.open("https://github.com/akaFTS/bcc-data", "_blank");
Property 'open' does not exist on type 'Window & typeof globalThis'.deno-ts(2339)

And the other one is "e.target.value" when handling uncontrolled inputs:

onChange={(e) => setInput(e.target.value)}
Property 'value' does not exist on type 'EventTarget & HTMLInputElement'.deno-ts(2339)

Not sure if those issues are related to Aleph or Deno itself, but I couldn't find any solutions online.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions