-
-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathtypes.ts
74 lines (66 loc) · 1.74 KB
/
types.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import { Mode } from "../bin/mode.js";
export interface AllContributorContributor {
contributions: string[];
login: string;
}
export interface AllContributorsData {
contributors: AllContributorContributor[];
}
export interface PartialPackageData {
author?: { email: string; name: string } | string;
dependencies?: Record<string, string>;
description?: string;
devDependencies?: Record<string, string>;
email?: string;
name?: string;
repository?: { type: string; url: string } | string;
}
export type OptionsAccess = "public" | "restricted";
export type OptionsBase = "common" | "everything" | "minimum" | "prompt";
export interface OptionsEmail {
github: string;
npm: string;
}
export interface OptionsLogo {
alt: string;
src: string;
}
export interface Options {
access: OptionsAccess;
author?: string;
base?: OptionsBase;
createRepository?: boolean;
description: string;
email: OptionsEmail;
excludeAllContributors?: boolean;
excludeCompliance?: boolean;
excludeLintDeprecation?: boolean;
excludeLintESLint?: boolean;
excludeLintJSDoc?: boolean;
excludeLintJson?: boolean;
excludeLintKnip?: boolean;
excludeLintMd?: boolean;
excludeLintPackageJson?: boolean;
excludeLintPackages?: boolean;
excludeLintPerfectionist?: boolean;
excludeLintRegex?: boolean;
excludeLintSpelling?: boolean;
excludeLintStrict?: boolean;
excludeLintStylistic?: boolean;
excludeLintYml?: boolean;
excludeReleases?: boolean;
excludeRenovate?: boolean;
excludeTests?: boolean;
funding?: string;
logo: OptionsLogo | undefined;
mode: Mode;
owner: string;
repository: string;
skipAllContributorsApi?: boolean;
skipGitHubApi?: boolean;
skipInstall?: boolean;
skipRemoval?: boolean;
skipRestore?: boolean;
skipUninstall?: boolean;
title: string;
}