From ff18dbaae08d0751d5a089ca6e65ebbc20175c5d Mon Sep 17 00:00:00 2001 From: Tomi Virkki Date: Mon, 11 Dec 2023 11:14:52 +0200 Subject: [PATCH] cleanup --- scripts/validate-build.ts | 2 +- test/typings/api.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/validate-build.ts b/scripts/validate-build.ts index abff7101..5e62b3d5 100644 --- a/scripts/validate-build.ts +++ b/scripts/validate-build.ts @@ -27,7 +27,7 @@ async function validateInheritedProperties() { for (const property of inheritedProperties) { if (typeDefinitionContent.includes(`${property}:`) || typeDefinitionContent.includes(`${property}?:`)) { - throw new Error(`The generated file contains the extracted property "${property}".`); + throw new Error(`The generated type definition file contains inherited property "${property}".`); } } } diff --git a/test/typings/api.ts b/test/typings/api.ts index 513342a1..15a6b2c2 100644 --- a/test/typings/api.ts +++ b/test/typings/api.ts @@ -65,7 +65,6 @@ assertType(dialogProps['aria-label']); assertType(dialogProps.footer); const datePickerProps = React.createElement(DatePicker, {}).props; -type DatePickerProps = typeof datePickerProps; const datePickerOnChange: typeof datePickerProps.onChange = (event) => { assertType(event.target.value);