Skip to content

Commit 8393146

Browse files
author
Alexandre Lotte
committed
Make options optional
1 parent 86ffa90 commit 8393146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hyperstatic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Config, LocationState, State } from './types';
1111

1212

1313

14-
const hyperstatic = ({ routes, options, init, view, subscriptions = (_s) => [], ...rest }: Config) => {
14+
const hyperstatic = ({ routes, options = {}, init, view, subscriptions = (_s) => [], ...rest }: Config) => {
1515

1616
// Internal values saved for each routes
1717
const meta = Object.keys(routes).reduce((obj, route) => {

0 commit comments

Comments
 (0)