Skip to content

Commit 6cb7153

Browse files
Update lib/rules/define-props-declaration.js
Co-authored-by: Flo Edelmann <[email protected]>
1 parent d08bed1 commit 6cb7153

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rules/define-props-declaration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const mapNativeType = (/** @type {string} */ nativeType) => {
2424
return 'any[]'
2525
}
2626
case 'Function': {
27-
return '() => void'
27+
return '(...args: any[]) => any'
2828
}
2929
case 'Symbol': {
3030
return 'symbol'

tests/lib/rules/define-props-declaration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ tester.run('define-props-declaration', rule, {
279279
`,
280280
output: `
281281
<script setup lang="ts">
282-
const props = defineProps<{ kind: () => void }>()
282+
const props = defineProps<{ kind: (...args: any[]) => any }>()
283283
</script>
284284
`,
285285
errors: [

0 commit comments

Comments
 (0)