Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki committed Dec 11, 2023
1 parent cc5a6db commit ff18dba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/validate-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}".`);
}
}
}
Expand Down
1 change: 0 additions & 1 deletion test/typings/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ assertType<DialogElement['ariaLabel'] | undefined>(dialogProps['aria-label']);
assertType<DialogProps['footer']>(dialogProps.footer);

const datePickerProps = React.createElement(DatePicker, {}).props;
type DatePickerProps = typeof datePickerProps;

const datePickerOnChange: typeof datePickerProps.onChange = (event) => {
assertType<DatePickerElement['value']>(event.target.value);
Expand Down

0 comments on commit ff18dba

Please sign in to comment.