Making TS happy after adding checker.
This commit is contained in:
parent
d033ee5589
commit
5fb88eef0a
@ -12,7 +12,8 @@ import { routeTree } from './routeTree.gen'
|
||||
library.add(fas)
|
||||
|
||||
// Create router
|
||||
const router = createRouter({
|
||||
// Must be `any` because TS complains otherwise
|
||||
const router: any = createRouter({
|
||||
context: {
|
||||
auth: undefined!
|
||||
},
|
||||
@ -32,11 +33,7 @@ const InnerApp = () => {
|
||||
<RouterProvider
|
||||
router={router}
|
||||
context={{ auth }}
|
||||
InnerWrap={({ children }) => (
|
||||
<AuthAwareQueryClientProvider>
|
||||
{children}
|
||||
</AuthAwareQueryClientProvider>
|
||||
)}
|
||||
InnerWrap={({ children }) => <AuthAwareQueryClientProvider>{children}</AuthAwareQueryClientProvider>}
|
||||
></RouterProvider>
|
||||
)
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ type Story = StoryObj<typeof meta>
|
||||
|
||||
export const Primary: Story = {
|
||||
args: {
|
||||
slug: 'my-recipe',
|
||||
title: 'My Recipe',
|
||||
ownerUsername: 'JesseBrault',
|
||||
starCount: 7,
|
||||
|
@ -1,25 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"useDefineForClassFields": true,
|
||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||
"module": "ESNext",
|
||||
"skipLibCheck": true,
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"useDefineForClassFields": true,
|
||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||
"module": "ESNext",
|
||||
"skipLibCheck": true,
|
||||
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
"jsx": "react-jsx",
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
"jsx": "react-jsx",
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
},
|
||||
"include": ["src"],
|
||||
"references": [{ "path": "./tsconfig.node.json" }]
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
// "noUnusedLocals": true,
|
||||
// "noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
},
|
||||
"include": ["src"],
|
||||
"references": [{ "path": "./tsconfig.node.json" }]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user