]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test(types): test ComponentCustomProps
authorEvan You <yyx990803@gmail.com>
Fri, 14 Jan 2022 06:13:03 +0000 (14:13 +0800)
committerEvan You <yyx990803@gmail.com>
Fri, 14 Jan 2022 06:13:03 +0000 (14:13 +0800)
test-dts/defineComponent.test-d.tsx

index 6c8da0591c0beba4bec641704460a84da40fed25..49634ef57c058d7c2c595ab7b2d48cd01bcc85a4 100644 (file)
@@ -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"
     />
   )