mdi-calendar
Until
{{ spell.expiredAt.toString() }}
@@ -68,7 +68,16 @@ const spellWord: string =
typeof route.params.word === "string"
? route.params.word
: route.params.word?.join("/") || ""
-const spell = ref
(null)
+interface SnSpell {
+ type: number
+ account: {
+ name: string
+ }
+ createdAt: string
+ affectedAt: string
+ expiredAt?: string
+}
+const spell = ref(null)
const error = ref(null)
const newPassword = ref()
diff --git a/app/types/api/order.ts b/app/types/api/order.ts
index 329e907..748e430 100644
--- a/app/types/api/order.ts
+++ b/app/types/api/order.ts
@@ -13,11 +13,11 @@ export interface SnWalletOrder {
remarks?: string
appIdentifier?: string
productIdentifier?: string
- meta?: Record
+ meta?: Record
amount: number
expiredAt: string
payeeWalletId?: string
- payeeWallet?: any
+ payeeWallet?: unknown
transactionId?: string
- transaction?: any
+ transaction?: unknown
}
diff --git a/app/types/api/publisher.ts b/app/types/api/publisher.ts
index c0b5565..92c3abf 100644
--- a/app/types/api/publisher.ts
+++ b/app/types/api/publisher.ts
@@ -1,30 +1,28 @@
-import type { SnCloudFile } from './post'
+import type { SnCloudFile } from "./post"
// Verification interface
export interface SnVerification {
- type: number;
- title: string;
- description: string;
- verifiedBy: string;
+ type: number
+ title: string
+ description: string
+ verifiedBy: string
}
// Publisher interface
export interface SnPublisher {
- id: string;
- type: number;
- name: string;
- nick: string;
- bio: string;
- pictureId: string;
- backgroundId: string;
- picture: SnCloudFile | null;
- background: SnCloudFile | null;
- verification: SnVerification | null;
- accountId: string;
- realmId: string | null;
- account: unknown | null;
- resourceIdentifier: string;
- createdAt: string;
- updatedAt: string;
- deletedAt: string | null;
+ id: string
+ type: number
+ name: string
+ nick: string
+ bio: string
+ picture: SnCloudFile | null
+ background: SnCloudFile | null
+ verification: SnVerification | null
+ accountId: string
+ realmId: string | null
+ account: unknown | null
+ resourceIdentifier: string
+ createdAt: string
+ updatedAt: string
+ deletedAt: string | null
}
diff --git a/app/types/markdown-it-texmath.d.ts b/app/types/markdown-it-texmath.d.ts
index 9ecd2a4..fdaed89 100644
--- a/app/types/markdown-it-texmath.d.ts
+++ b/app/types/markdown-it-texmath.d.ts
@@ -1,10 +1,14 @@
-declare module 'markdown-it-texmath' {
+import type { PluginSimple } from "markdown-it"
+import type katex from "katex"
+import type { KatexOptions } from "katex"
+
+declare module "markdown-it-texmath" {
interface TexMathOptions {
- engine?: any
+ engine?: typeof katex
delimiters?: string
- katexOptions?: Record
+ katexOptions?: KatexOptions
}
- function texmath(options?: TexMathOptions): any
+ function texmath(options?: TexMathOptions): PluginSimple
export default texmath
}
diff --git a/app/types/marked-katex.d.ts b/app/types/marked-katex.d.ts
index 355e75c..d8ae90a 100644
--- a/app/types/marked-katex.d.ts
+++ b/app/types/marked-katex.d.ts
@@ -1,4 +1,4 @@
-declare module 'marked-katex' {
+declare module "marked-katex" {
interface Options {
throwOnError?: boolean
errorColor?: string
@@ -7,12 +7,18 @@ declare module 'marked-katex' {
fleqn?: boolean
macros?: Record
colorIsTextColor?: boolean
- strict?: boolean | 'ignore' | 'warn' | 'error'
- trust?: boolean | ((context: { command: string; url: string; protocol: string }) => boolean)
- output?: 'html' | 'mathml' | 'htmlAndMathml'
+ strict?: boolean | "ignore" | "warn" | "error"
+ trust?:
+ | boolean
+ | ((context: {
+ command: string
+ url: string
+ protocol: string
+ }) => boolean)
+ output?: "html" | "mathml" | "htmlAndMathml"
}
- function markedKatex(options?: Options): any
+ function markedKatex(options?: Options): object
export default markedKatex
}