Skip to content

Feature request: typed inputs #399

Open

Description

@kubukoz

It would be amazing to have typed events for inputs. This is the tweet.

like, maybe type := "file" can carry a singleton type of "file" and this can somehow be used to derive a more specific type in onChange, like in typescript?

Activity

  1. faresbouzayen commented on Sep 28, 2024

    @faresbouzayen
  2. kubukoz commented on Sep 29, 2024

    @kubukoz
    Author
  3. faresbouzayen commented on Sep 29, 2024

    @faresbouzayen
  4. added
    enhancement
    on Sep 29, 2024
  5. armanbilge commented on Sep 29, 2024

    @armanbilge
    Owner

    I think getting this to work with the generic syntax type := "file" may be more challenging ... but maybe we could add a custom builder to the DSL e.g. input["file"](...). I think we'd also need something like the changes I suggested #180, where attributes and events can be typed specifically according to the element type. This will help us better support Web Components.

  6. SanjayUG commented on Mar 22, 2025

    @SanjayUG
  7. malladinagarjuna2 commented on Mar 18, 2026

    @malladinagarjuna2

    hey @armanbilge i would like to work on
    this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions