🚨 Clean up eslint issues

This commit is contained in:
2025-11-08 12:20:58 +08:00
parent 05f8cabb33
commit 063faf4b8e
17 changed files with 145 additions and 171 deletions

View File

@@ -13,11 +13,11 @@ export interface SnWalletOrder {
remarks?: string
appIdentifier?: string
productIdentifier?: string
meta?: Record<string, any>
meta?: Record<string, unknown>
amount: number
expiredAt: string
payeeWalletId?: string
payeeWallet?: any
payeeWallet?: unknown
transactionId?: string
transaction?: any
transaction?: unknown
}

View File

@@ -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
}

View File

@@ -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<string, any>
katexOptions?: KatexOptions
}
function texmath(options?: TexMathOptions): any
function texmath(options?: TexMathOptions): PluginSimple
export default texmath
}

View File

@@ -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<string, string>
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
}