Skip to content

Commit

Permalink
Fixes Typecheck bug in preactjs/preact#3934 (#452)
Browse files Browse the repository at this point in the history
* Added SignalLike as an option for default which fixes the bug while preserving functionality.

* Update index.d.ts

* chore: Bump deps

---------

Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com>
Co-authored-by: Ryan Christian <rchristian@ryanchristian.dev>
  • Loading branch information
3 people committed Jul 21, 2023
1 parent 2086a25 commit 7fb5f59
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 1,215 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface CustomHistory {

export interface RoutableProps {
path?: string;
default?: boolean;
default?: boolean | preact.JSX.SignalLike<boolean | undefined>;
}

export interface RouterOnChangeArgs<
Expand Down

0 comments on commit 7fb5f59

Please sign in to comment.