Skip to content

Commit e628d24

Browse files
committed
feat: deployable docs
1 parent a4fad1f commit e628d24

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

apps/docs/next.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//@ts-check
2-
31
// eslint-disable-next-line @typescript-eslint/no-var-requires
42
const { composePlugins, withNx } = require('@nx/next');
53

apps/docs/public/favicon.ico

14.7 KB
Binary file not shown.

apps/docs/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"name": "next"
1717
}
1818
],
19-
"types": ["jest", "node"]
19+
"types": ["jest", "node"],
20+
"lib": ["es2019", "dom", "dom.iterable"]
2021
},
2122
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "next-env.d.ts"],
2223
"exclude": [

packages/core/src/router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type GenericRouterOptions = {
1313

1414
let genericRouterCurrentStateString = '';
1515
export class GenericRouter extends UrlStateRouter {
16-
private interval = 0;
16+
private interval: number = 0;
1717

1818
constructor(
1919
private callback: Callback,
@@ -28,7 +28,7 @@ export class GenericRouter extends UrlStateRouter {
2828
if (typeof window !== 'undefined') {
2929
this.interval = setInterval(() => {
3030
this.onSearchParamsChange();
31-
}, this.options.poolingIntervalMs);
31+
}, this.options.poolingIntervalMs) as unknown as number; // fix for NodeJS
3232
}
3333
}
3434

0 commit comments

Comments
 (0)