From 77283f4c942ffb16ef8bb501732af80a1e3ac3c2 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 14 Jan 2022 14:13:03 +0800 Subject: [PATCH] test(types): test ComponentCustomProps --- test-dts/defineComponent.test-d.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test-dts/defineComponent.test-d.tsx b/test-dts/defineComponent.test-d.tsx index 6c8da059..49634ef5 100644 --- a/test-dts/defineComponent.test-d.tsx +++ b/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" /> )