Skip to content

Commit 4273b3a

Browse files
authored
fix(ts-types): mark optional fields as such in PackageTableType
1 parent b751297 commit 4273b3a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

ts-types/unicorn.d.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ export interface PackageTableType {
66
unicornSpec: "v1.0.0";
77
pkgType: "com.github" | "com.github.releases" | "com.gitlab" | "com.pastebin" | "org.bitbucket";
88
name: string;
9-
desc: string;
10-
maintainer: string;
11-
licensing: string;
12-
version: string;
13-
script: {
14-
preinstall: string;
15-
postinstall: string;
16-
preremove: string;
17-
postremove: string;
9+
desc?: string;
10+
maintainer?: string;
11+
licensing?: string;
12+
version?: string;
13+
script?: {
14+
preinstall?: string;
15+
postinstall?: string;
16+
preremove?: string;
17+
postremove?: string;
1818
};
19-
rel: {
20-
depends: string[];
21-
conflicts: string[];
19+
rel?: {
20+
depends?: string[];
21+
conflicts?: string[];
2222
};
23-
security: { sha256: Map<string, string> };
23+
security?: { sha256?: Map<string, string> };
2424
}
2525

2626
declare module "unicorn" {

0 commit comments

Comments
 (0)