From 611650415693772e9d7d77f1dd1e7bce8ffa244d Mon Sep 17 00:00:00 2001 From: robertmaier Date: Fri, 21 Apr 2023 18:35:26 +0200 Subject: [PATCH] fix: RoutableProps type the delete type defines an optional boolean, which breaks typechecks in preacts jsx.d.ts file after adding Signals. --- .changeset/moody-islands-buy.md | 5 +++++ packages/preact-iso/router.d.ts | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changeset/moody-islands-buy.md diff --git a/.changeset/moody-islands-buy.md b/.changeset/moody-islands-buy.md new file mode 100644 index 00000000..2626dc63 --- /dev/null +++ b/.changeset/moody-islands-buy.md @@ -0,0 +1,5 @@ +--- +'preact-iso': patch +--- + +Changed RoutableProps definition to fix a type error in preact, caused by namespace declaration merging. diff --git a/packages/preact-iso/router.d.ts b/packages/preact-iso/router.d.ts index ba38ef30..585edb49 100644 --- a/packages/preact-iso/router.d.ts +++ b/packages/preact-iso/router.d.ts @@ -25,7 +25,6 @@ export const useRoute: () => { interface RoutableProps { path?: string; - default?: boolean; } export interface RouteProps extends RoutableProps {