Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

With typescript=false,class: className prop must be set or a type error occurs #2294

Open
Labels
awaiting submitterThe issue or PR requires additional information or action from the submitter.
@mustafa0x

Description

@mustafa0x

Describe the bug

Eglet {ref = $bindable(null), value = $bindable(), class: className, ...restProps} = $props()

If class isn't set, a type error is reported. The fix is to set a defaultclass: className = ''.

With typescript this is fixed at the typing level

typeRequired={class:string}typeOptional={class?:string}

Reproduction

  1. Disable typescript
  2. Add component
  3. Don't pass class prop

Logs

System Info

n/a

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterThe issue or PR requires additional information or action from the submitter.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp