🚨 Clean up eslint issues
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
12
app/types/markdown-it-texmath.d.ts
vendored
12
app/types/markdown-it-texmath.d.ts
vendored
@@ -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
|
||||
}
|
||||
|
||||
16
app/types/marked-katex.d.ts
vendored
16
app/types/marked-katex.d.ts
vendored
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user