From 3ffc7be864f162c4acb463f7c796856ad250a056 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 25 Jun 2021 19:31:47 -0400 Subject: [PATCH] chore(sfc-playground): ignore duplicate logs --- packages/runtime-core/src/apiSetupHelpers.ts | 11 +++++++- .../sfc-playground/src/output/Preview.vue | 8 +++++- test-dts/setupHelpers.test-d.ts | 26 +++++++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/apiSetupHelpers.ts b/packages/runtime-core/src/apiSetupHelpers.ts index c1703f22..ff770e3f 100644 --- a/packages/runtime-core/src/apiSetupHelpers.ts +++ b/packages/runtime-core/src/apiSetupHelpers.ts @@ -7,6 +7,12 @@ import { EmitFn, EmitsOptions } from './componentEmits' import { ComponentObjectPropsOptions, ExtractPropTypes } from './componentProps' import { warn } from './warning' +type InferDefaults = { + [K in keyof T]?: NonNullable extends object + ? () => NonNullable + : NonNullable +} + /** * Compile-time-only helper used for declaring props inside `