Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork698
Description
What rule do you want to change?define-props-declaration
Does this change cause the rule to produce more or fewer warnings?
Does not change the number of warnings.
How will the change be implemented? (New option, new default behavior, etc.)?
Implementing afix method in thecontext.reportdescriptor parameter.
The rule will supportseparateInterface option that will opt-in to define type passed to thedefineProps as an interface abovedefineProps call.
Please provide some example code that this change will affect:
The rule will be able to autofix the following code:
<script setup lang="ts">const props=defineProps({ kind:String })</script>
transforming it to:
<script setup lang="ts">const props=defineProps<{ kind:string }>()</script>
What does the rule currently do for this code?
It des not fix it.
What will the rule do after it's changed?
The rule will have the autofix feature transforming runtime syntax to type-based syntax
Additional context