Fix
This commit is contained in:
@@ -14,5 +14,6 @@ module.exports = {
|
||||
'warn',
|
||||
{ allowConstantExport: true },
|
||||
],
|
||||
"@typescript-eslint/no-namespace": "off",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -9,12 +9,14 @@ import { trpc } from "../trpc/trpc"
|
||||
const encodeTodo = S.encodeSync(JsonifiableTodo)
|
||||
|
||||
|
||||
export interface VTodoProps {
|
||||
export namespace VTodo {
|
||||
export interface Props {
|
||||
todo: Todo
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export const VTodo = observer(({ todo }: VTodoProps) => {
|
||||
export const VTodo = observer(({ todo }: VTodo.Props) => {
|
||||
|
||||
const updateTodo = trpc.todo.update.useMutation()
|
||||
const removeTodo = trpc.todo.remove.useMutation()
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"moduleDetection": "force",
|
||||
|
||||
Reference in New Issue
Block a user