mirror of
https://github.com/go-gitea/gitea.git
synced 2024-10-19 06:43:41 -04:00
7207d93f01
Typescript error count is reduced from 633 to 540 with this. No runtime changes except in test code.
39 lines
818 B
TypeScript
39 lines
818 B
TypeScript
export type MentionValue = {
|
|
key: string,
|
|
value: string,
|
|
name: string,
|
|
fullname: string,
|
|
avatar: string,
|
|
}
|
|
|
|
export type Config = {
|
|
appUrl: string,
|
|
appSubUrl: string,
|
|
assetVersionEncoded: string,
|
|
assetUrlPrefix: string,
|
|
runModeIsProd: boolean,
|
|
customEmojis: Record<string, string>,
|
|
csrfToken: string,
|
|
pageData: Record<string, any>,
|
|
notificationSettings: Record<string, any>,
|
|
enableTimeTracking: boolean,
|
|
mentionValues?: MentionValue[],
|
|
mermaidMaxSourceCharacters: number,
|
|
i18n: Record<string, string>,
|
|
}
|
|
|
|
export type Intent = 'error' | 'warning' | 'info';
|
|
|
|
export type RequestData = string | FormData | URLSearchParams;
|
|
|
|
export type RequestOpts = {
|
|
data?: RequestData,
|
|
} & RequestInit;
|
|
|
|
export type IssueData = {
|
|
owner: string,
|
|
repo: string,
|
|
type: string,
|
|
index: string,
|
|
}
|