Skip to content

Commit 6116504

Browse files
committed
fix: RoutableProps type
the delete type defines an optional boolean, which breaks typechecks in preacts jsx.d.ts file after adding Signals.
1 parent 3c5672e commit 6116504

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changeset/moody-islands-buy.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'preact-iso': patch
3+
---
4+
5+
Changed RoutableProps definition to fix a type error in preact, caused by namespace declaration merging.

packages/preact-iso/router.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export const useRoute: () => {
2525

2626
interface RoutableProps {
2727
path?: string;
28-
default?: boolean;
2928
}
3029

3130
export interface RouteProps<Props> extends RoutableProps {

0 commit comments

Comments
 (0)