Skip to content

Commit

Permalink
fix: add note to delete test.tsx and export InferredRouter to silence…
Browse files Browse the repository at this point in the history
… error
  • Loading branch information
tylersayshi committed Sep 7, 2024
1 parent 92e5829 commit 5b71f3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/waku/src/router/test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// TODO: Delete this file when marking PR ready

import { createPages } from './create-pages.js';

export function Fake() {
Expand Down Expand Up @@ -33,4 +35,6 @@ export const router = createPages(async ({ createPage }) => {
// Note: This abstracts away the return type from the final router
type Router = typeof router;

type InferredRouter = Awaited<NonNullable<Router['DO_NOT_USE_ready']>>[number];
export type InferredRouter = Awaited<
NonNullable<Router['DO_NOT_USE_ready']>
>[number];
3 changes: 2 additions & 1 deletion packages/waku/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"lib": ["esnext", "dom", "dom.iterable"]
"lib": ["esnext", "dom", "dom.iterable"],
"noErrorTruncation": true
},
"include": ["src"]
}

0 comments on commit 5b71f3c

Please sign in to comment.