This commit is contained in:
Julien Valverdé
2024-07-18 01:22:16 +02:00
parent 4315d0dc52
commit 5ebf7f4a6e
3 changed files with 7 additions and 3 deletions

View File

@@ -14,5 +14,6 @@ module.exports = {
'warn',
{ allowConstantExport: true },
],
"@typescript-eslint/no-namespace": "off",
},
}

View File

@@ -9,12 +9,14 @@ import { trpc } from "../trpc/trpc"
const encodeTodo = S.encodeSync(JsonifiableTodo)
export interface VTodoProps {
todo: Todo
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()

View File

@@ -11,6 +11,7 @@
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"resolveJsonModule": true,
"isolatedModules": true,
"moduleDetection": "force",