= ({ data, index }) => {
className="box-border grid grid-cols-[auto_1fr] gap-x-2 px-4 [content-visibility:auto] first:pt-4 last:pb-4"
>
-
+
{formatData.username}
diff --git a/src/domain/MessageList.ts b/src/domain/MessageList.ts
index 9117c91..3655151 100644
--- a/src/domain/MessageList.ts
+++ b/src/domain/MessageList.ts
@@ -3,7 +3,7 @@ import { ListModule } from 'remesh/modules/list'
import { nanoid } from 'nanoid'
import { from, map, tap, merge } from 'rxjs'
import Storage from './externs/Storage'
-import { type Message } from '@/@types'
+import { type Message } from '@/types'
const MessageListDomain = Remesh.domain({
name: 'MessageListDomain',
diff --git a/env.d.ts b/src/types/env.d.ts
similarity index 100%
rename from env.d.ts
rename to src/types/env.d.ts
diff --git a/src/@types/index.d.ts b/src/types/index.d.ts
similarity index 68%
rename from src/@types/index.d.ts
rename to src/types/index.d.ts
index 4d12e2d..bdba828 100644
--- a/src/@types/index.d.ts
+++ b/src/types/index.d.ts
@@ -1,11 +1,14 @@
export interface Message {
id: string
+ userId: string
body: string
username: string
- avatar: string
+ userAvatar: string
date: number
+ linkUsers: string[]
likeChecked: boolean
hateChecked: boolean
likeCount: number
+ hateUsers: string[]
hateCount: number
}
diff --git a/src/types/shim.d.ts b/src/types/shim.d.ts
new file mode 100644
index 0000000..65c3c23
--- /dev/null
+++ b/src/types/shim.d.ts
@@ -0,0 +1,17 @@
+// issues: https://github.com/facebook/react/issues/17157
+// issues: https://github.com/facebook/react/pull/24730
+declare module 'react' {
+ interface HTMLAttributes extends AriaAttributes, DOMAttributes {
+ inert?: boolean | undefined | ''
+ }
+}
+
+declare global {
+ namespace JSX {
+ interface IntrinsicAttributes {
+ inert?: boolean | undefined | ''
+ }
+ }
+}
+
+export {}
diff --git a/tsconfig.json b/tsconfig.json
index 9b364da..5ed7ca9 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -2,6 +2,9 @@
"extends": "./.wxt/tsconfig.json",
"compilerOptions": {
"allowImportingTsExtensions": true,
- "jsx": "react-jsx"
+ "jsx": "react-jsx",
+ "paths": {
+ "@/*": ["./src/*"]
+ }
}
}