-
-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Would it be possible to have a rule that enforces the explicit declaration of Prop
interface?
// BAD
let {
inputValue = $bindable(''),
disabled = false,
icon,
overflowableContent
}: {
inputValue: string;
disabled?: boolean;
icon: Snippet;
overflowableContent?: Snippet;
} = $props()
// GOOD
interface Props {
inputValue: string;
disabled?: boolean;
icon: Snippet;
overflowableContent?: Snippet;
}
let {
inputValue = $bindable(''),
disabled = false,
icon,
overflowableContent
}: Props = $props()
marekdedic
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request