Skip to content

Prop type validation #46

@aalin

Description

@aalin

It would be nice if it was possible to specify prop types.

Something like T::Struct in Sorbet maybe.

:ruby
  prop :description, String, nil?: true
  prop :count, Integer
  prop :onclick, HandlerRef
%div
  = if $description
    %p= $description
  %p Count: #{$count}
  %div
    %button{onclick: $onclick}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions