-
Notifications
You must be signed in to change notification settings - Fork 7
/
web.d.ts
35 lines (31 loc) 路 904 Bytes
/
web.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
export type Flags =
"isGit" |
"isDeprecated" |
"isOutdated" |
"hasNativeCode" |
"hasManifest" |
"hasOutdatedDependency" |
"hasWarnings" |
"hasNoLicense" |
"hasMultipleLicenses" |
"hasMissingOrUnusedDependency" |
"hasMinifiedCode" |
"hasIndirectDependencies" |
"hasCustomResolver" |
"hasDependencies" |
"hasExternalCapacity" |
"hasScript" |
"hasBannedFile";
export interface FlagObject {
/** An emoji to visually identify the anomaly **/
emoji: string;
/** Title (or name) of the flag **/
title: string;
/** Short description/warning of the anomaly **/
tooltipDescription: string;
}
export type Manifest = Record<string, FlagObject>;
export function getManifest(): Manifest;
export function getManifestEmoji(): IterableIterator<[Flags, string]>;
export function getEmojiFromTitle(title: Flags): string;
export function getFlags(): Record<string, string>;