Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 11, 2024
1 parent 2fffd88 commit 4b90dba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/create-storage-hook/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface UseStorageParserOption<T> {
deserializer: Deserializer<T>
}

function getServerSnapshotWithoutServerValue() {
function getServerSnapshotWithoutServerValue(): never {
throw noSSRError('useLocalStorage cannot be used on the server without a serverValue');
}

Expand Down
2 changes: 1 addition & 1 deletion src/use-url-hash-state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface UseUrlHashStateParserOption<T> {
deserializer: Deserializer<T>
}

function getServerSnapshotWithoutServerValue() {
function getServerSnapshotWithoutServerValue(): never {
throw noSSRError('useUrlHashState cannot be used on the server without a serverValue');
}

Expand Down

0 comments on commit 4b90dba

Please sign in to comment.