Răsfoiți Sursa

test(types): test ComponentCustomProps

Evan You 4 ani în urmă
părinte
comite
77283f4c94
1 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  1. 7 0
      test-dts/defineComponent.test-d.tsx

+ 7 - 0
test-dts/defineComponent.test-d.tsx

@@ -15,6 +15,12 @@ import {
   h
 } from './index'
 
+declare module 'vue' {
+  interface ComponentCustomProps {
+    hello?: string
+  }
+}
+
 describe('with object props', () => {
   interface ExpectedProps {
     a?: number | undefined
@@ -294,6 +300,7 @@ describe('with object props', () => {
       fff={(a, b) => ({ a: a > +b })}
       hhh={false}
       jjj={() => ''}
+      hello="hello"
     />
   )