Skip to content

Commit ba416c0

Browse files
committed
feat: Under-specified objects are Record<string, unknown>
1 parent 3ffb475 commit ba416c0

7 files changed

+726
-718
lines changed

examples/digital-ocean-api.ts

Lines changed: 54 additions & 54 deletions
Large diffs are not rendered by default.

examples/github-api-next.ts

Lines changed: 168 additions & 168 deletions
Large diffs are not rendered by default.

examples/github-api.ts

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -9579,7 +9579,7 @@ export interface components {
95799579
* "deployments": "write"
95809580
* }
95819581
*/
9582-
permissions?: Record<string, never>;
9582+
permissions?: Record<string, unknown>;
95839583
/** @description The repositories this token has access to */
95849584
repositories?: (components["schemas"]["repository"])[];
95859585
/** @example config.yaml */
@@ -10635,8 +10635,8 @@ export interface components {
1063510635
comments_url: string;
1063610636
owner?: components["schemas"]["simple-user"];
1063710637
truncated?: boolean;
10638-
forks?: (Record<string, never>)[];
10639-
history?: (Record<string, never>)[];
10638+
forks?: (Record<string, unknown>)[];
10639+
history?: (Record<string, unknown>)[];
1064010640
};
1064110641
/**
1064210642
* Public User
@@ -10780,8 +10780,8 @@ export interface components {
1078010780
comments_url: string;
1078110781
owner?: components["schemas"]["nullable-simple-user"];
1078210782
truncated?: boolean;
10783-
forks?: (Record<string, never>)[];
10784-
history?: (Record<string, never>)[];
10783+
forks?: (Record<string, unknown>)[];
10784+
history?: (Record<string, unknown>)[];
1078510785
}) | null;
1078610786
url?: string;
1078710787
forks_url?: string;
@@ -11728,7 +11728,7 @@ export interface components {
1172811728
* Empty Object
1172911729
* @description An object without any properties.
1173011730
*/
11731-
"empty-object": Record<string, never>;
11731+
"empty-object": Record<string, unknown>;
1173211732
/**
1173311733
* Codespace machine
1173411734
* @description A description of the machine powering a codespace.
@@ -12294,7 +12294,7 @@ export interface components {
1229412294
node_id: string;
1229512295
/** Format: uri */
1229612296
archive_url?: string;
12297-
exclude?: (Record<string, never>)[];
12297+
exclude?: (Record<string, unknown>)[];
1229812298
};
1229912299
/**
1230012300
* Minimal Repository
@@ -20742,8 +20742,8 @@ export interface components {
2074220742
primary_key_id?: number;
2074320743
key_id?: string;
2074420744
public_key?: string;
20745-
emails?: (Record<string, never>)[];
20746-
subkeys?: (Record<string, never>)[];
20745+
emails?: (Record<string, unknown>)[];
20746+
subkeys?: (Record<string, unknown>)[];
2074720747
can_sign?: boolean;
2074820748
can_encrypt_comms?: boolean;
2074920749
can_encrypt_storage?: boolean;
@@ -22586,7 +22586,7 @@ export interface components {
2258622586
id: number;
2258722587
node_id: string;
2258822588
original_environment: string;
22589-
payload: Record<string, never> | string;
22589+
payload: Record<string, unknown> | string;
2259022590
/**
2259122591
* App
2259222592
* @description GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
@@ -23120,7 +23120,7 @@ export interface components {
2312023120
id: number;
2312123121
node_id: string;
2312223122
original_environment: string;
23123-
payload: string | Record<string, never>;
23123+
payload: string | Record<string, unknown>;
2312423124
/**
2312523125
* App
2312623126
* @description GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
@@ -40484,7 +40484,7 @@ export interface components {
4048440484
/** Format: uri */
4048540485
url?: string;
4048640486
}) | null;
40487-
body?: string | Record<string, never>;
40487+
body?: string | Record<string, unknown>;
4048840488
body_html?: string;
4048940489
container_metadata?: ({
4049040490
labels?: Record<string, unknown> | null;
@@ -40496,7 +40496,7 @@ export interface components {
4049640496
}) | null;
4049740497
created_at?: string;
4049840498
description: string;
40499-
docker_metadata?: (Record<string, never>)[];
40499+
docker_metadata?: (Record<string, unknown>)[];
4050040500
draft?: boolean;
4050140501
/** Format: uri */
4050240502
html_url: string;
@@ -40513,29 +40513,29 @@ export interface components {
4051340513
npm_user?: string;
4051440514
author?: Record<string, unknown> | null;
4051540515
bugs?: Record<string, unknown> | null;
40516-
dependencies?: Record<string, never>;
40517-
dev_dependencies?: Record<string, never>;
40518-
peer_dependencies?: Record<string, never>;
40519-
optional_dependencies?: Record<string, never>;
40516+
dependencies?: Record<string, unknown>;
40517+
dev_dependencies?: Record<string, unknown>;
40518+
peer_dependencies?: Record<string, unknown>;
40519+
optional_dependencies?: Record<string, unknown>;
4052040520
description?: string;
4052140521
dist?: Record<string, unknown> | null;
4052240522
git_head?: string;
4052340523
homepage?: string;
4052440524
license?: string;
4052540525
main?: string;
4052640526
repository?: Record<string, unknown> | null;
40527-
scripts?: Record<string, never>;
40527+
scripts?: Record<string, unknown>;
4052840528
id?: string;
4052940529
node_version?: string;
4053040530
npm_version?: string;
4053140531
has_shrinkwrap?: boolean;
40532-
maintainers?: (Record<string, never>)[];
40533-
contributors?: (Record<string, never>)[];
40534-
engines?: Record<string, never>;
40532+
maintainers?: (Record<string, unknown>)[];
40533+
contributors?: (Record<string, unknown>)[];
40534+
engines?: Record<string, unknown>;
4053540535
keywords?: (string)[];
4053640536
files?: (string)[];
40537-
bin?: Record<string, never>;
40538-
man?: Record<string, never>;
40537+
bin?: Record<string, unknown>;
40538+
man?: Record<string, unknown>;
4053940539
directories?: Record<string, unknown> | null;
4054040540
os?: (string)[];
4054140541
cpu?: (string)[];
@@ -40623,7 +40623,7 @@ export interface components {
4062340623
/** Format: uri */
4062440624
url: string;
4062540625
};
40626-
rubygems_metadata?: (Record<string, never>)[];
40626+
rubygems_metadata?: (Record<string, unknown>)[];
4062740627
source_url?: string;
4062840628
summary: string;
4062940629
tag_name?: string;
@@ -40743,14 +40743,14 @@ export interface components {
4074340743
body_html: string;
4074440744
created_at: string;
4074540745
description: string;
40746-
docker_metadata?: (Record<string, never>)[];
40746+
docker_metadata?: (Record<string, unknown>)[];
4074740747
draft?: boolean;
4074840748
/** Format: uri */
4074940749
html_url: string;
4075040750
id: number;
4075140751
installation_command: string;
4075240752
manifest?: string;
40753-
metadata: (Record<string, never>)[];
40753+
metadata: (Record<string, unknown>)[];
4075440754
name: string;
4075540755
package_files: ({
4075640756
content_type: string;
@@ -40819,7 +40819,7 @@ export interface components {
4081940819
/** Format: uri */
4082040820
url: string;
4082140821
};
40822-
rubygems_metadata?: (Record<string, never>)[];
40822+
rubygems_metadata?: (Record<string, unknown>)[];
4082340823
/** Format: uri */
4082440824
source_url?: string;
4082540825
summary: string;
@@ -79177,7 +79177,7 @@ export interface components {
7917779177
type: string;
7917879178
url: string;
7917979179
};
79180-
body?: string | Record<string, never>;
79180+
body?: string | Record<string, unknown>;
7918179181
body_html?: string;
7918279182
container_metadata?: {
7918379183
labels?: Record<string, unknown> | null;
@@ -79189,7 +79189,7 @@ export interface components {
7918979189
};
7919079190
created_at?: string;
7919179191
description: string;
79192-
docker_metadata?: (Record<string, never>)[];
79192+
docker_metadata?: (Record<string, unknown>)[];
7919379193
draft?: boolean;
7919479194
html_url: string;
7919579195
id: number;
@@ -79203,32 +79203,32 @@ export interface components {
7920379203
name?: string;
7920479204
version?: string;
7920579205
npm_user?: string;
79206-
author?: string | Record<string, never>;
79207-
bugs?: string | Record<string, never>;
79208-
dependencies?: Record<string, never>;
79209-
dev_dependencies?: Record<string, never>;
79210-
peer_dependencies?: Record<string, never>;
79211-
optional_dependencies?: Record<string, never>;
79206+
author?: string | Record<string, unknown>;
79207+
bugs?: string | Record<string, unknown>;
79208+
dependencies?: Record<string, unknown>;
79209+
dev_dependencies?: Record<string, unknown>;
79210+
peer_dependencies?: Record<string, unknown>;
79211+
optional_dependencies?: Record<string, unknown>;
7921279212
description?: string;
79213-
dist?: string | Record<string, never>;
79213+
dist?: string | Record<string, unknown>;
7921479214
git_head?: string;
7921579215
homepage?: string;
7921679216
license?: string;
7921779217
main?: string;
79218-
repository?: string | Record<string, never>;
79219-
scripts?: Record<string, never>;
79218+
repository?: string | Record<string, unknown>;
79219+
scripts?: Record<string, unknown>;
7922079220
id?: string;
7922179221
node_version?: string;
7922279222
npm_version?: string;
7922379223
has_shrinkwrap?: boolean;
7922479224
maintainers?: (string)[];
7922579225
contributors?: (string)[];
79226-
engines?: Record<string, never>;
79226+
engines?: Record<string, unknown>;
7922779227
keywords?: (string)[];
7922879228
files?: (string)[];
79229-
bin?: Record<string, never>;
79230-
man?: Record<string, never>;
79231-
directories?: string | Record<string, never>;
79229+
bin?: Record<string, unknown>;
79230+
man?: Record<string, unknown>;
79231+
directories?: string | Record<string, unknown>;
7923279232
os?: (string)[];
7923379233
cpu?: (string)[];
7923479234
readme?: string;
@@ -79239,7 +79239,7 @@ export interface components {
7923979239
deleted_by_id?: number;
7924079240
}) | null;
7924179241
nuget_metadata?: (({
79242-
id?: string | Record<string, never> | number;
79242+
id?: string | Record<string, unknown> | number;
7924379243
name?: string;
7924479244
value?: OneOf<[boolean, string, number, {
7924579245
url?: string;
@@ -79295,7 +79295,7 @@ export interface components {
7929579295
target_commitish?: string;
7929679296
url?: string;
7929779297
};
79298-
rubygems_metadata?: (Record<string, never>)[];
79298+
rubygems_metadata?: (Record<string, unknown>)[];
7929979299
summary: string;
7930079300
tag_name?: string;
7930179301
target_commitish?: string;
@@ -79380,7 +79380,7 @@ export interface components {
7938079380
id: number;
7938179381
installation_command: string;
7938279382
manifest?: string;
79383-
metadata: (Record<string, never>)[];
79383+
metadata: (Record<string, unknown>)[];
7938479384
name: string;
7938579385
package_files: ({
7938679386
content_type?: string;
@@ -79429,7 +79429,7 @@ export interface components {
7942979429
target_commitish: string;
7943079430
url: string;
7943179431
};
79432-
rubygems_metadata?: (Record<string, never>)[];
79432+
rubygems_metadata?: (Record<string, unknown>)[];
7943379433
summary: string;
7943479434
tag_name?: string;
7943579435
target_commitish: string;
@@ -86258,7 +86258,7 @@ export interface components {
8625886258
/** @description Accepted */
8625986259
accepted: {
8626086260
content: {
86261-
"application/json": Record<string, never>;
86261+
"application/json": Record<string, unknown>;
8626286262
};
8626386263
};
8626486264
/** @description Forbidden */
@@ -88116,9 +88116,9 @@ export interface operations {
8811688116
content?: string;
8811788117
/** @description The new filename for the file. */
8811888118
filename?: string | null;
88119-
}) & (Record<string, never> | Record<string, never> | Record<string, never>)) | null) | undefined;
88119+
}) & (Record<string, unknown> | Record<string, unknown> | Record<string, unknown>)) | null) | undefined;
8812088120
};
88121-
}) & (Record<string, never> | Record<string, never>)) | null;
88121+
}) & (Record<string, unknown> | Record<string, unknown>)) | null;
8812288122
};
8812388123
};
8812488124
responses: {
@@ -88289,7 +88289,7 @@ export interface operations {
8828988289
/** @description Not Found if gist is not starred */
8829088290
404: {
8829188291
content: {
88292-
"application/json": Record<string, never>;
88292+
"application/json": Record<string, unknown>;
8829388293
};
8829488294
};
8829588295
};
@@ -91125,7 +91125,7 @@ export interface operations {
9112591125
/** @description Response */
9112691126
200: {
9112791127
content: {
91128-
"application/json": components["schemas"]["interaction-limit-response"] | Record<string, never>;
91128+
"application/json": components["schemas"]["interaction-limit-response"] | Record<string, unknown>;
9112991129
};
9113091130
};
9113191131
};
@@ -91678,7 +91678,7 @@ export interface operations {
9167891678
/** @description User is getting converted asynchronously */
9167991679
202: {
9168091680
content: {
91681-
"application/json": Record<string, never>;
91681+
"application/json": Record<string, unknown>;
9168291682
};
9168391683
};
9168491684
/** @description User was converted */
@@ -93215,7 +93215,7 @@ export interface operations {
9321593215
/** @description Response */
9321693216
201: {
9321793217
content: {
93218-
"application/json": Record<string, never>;
93218+
"application/json": Record<string, unknown>;
9321993219
};
9322093220
};
9322193221
304: components["responses"]["not_modified"];
@@ -93398,7 +93398,7 @@ export interface operations {
9339893398
/** @description Response */
9339993399
201: {
9340093400
content: {
93401-
"application/json": Record<string, never>;
93401+
"application/json": Record<string, unknown>;
9340293402
};
9340393403
};
9340493404
304: components["responses"]["not_modified"];
@@ -99945,7 +99945,7 @@ export interface operations {
9994599945
/** @description Response */
9994699946
200: {
9994799947
content: {
99948-
"application/json": components["schemas"]["interaction-limit-response"] | Record<string, never>;
99948+
"application/json": components["schemas"]["interaction-limit-response"] | Record<string, unknown>;
9994999949
};
9995099950
};
9995199951
};
@@ -101212,7 +101212,7 @@ export interface operations {
101212101212
*/
101213101213
path: "/" | "/docs";
101214101214
});
101215-
}) & (Record<string, never> | Record<string, never> | Record<string, never> | Record<string, never> | Record<string, never>);
101215+
}) & (Record<string, unknown> | Record<string, unknown> | Record<string, unknown> | Record<string, unknown> | Record<string, unknown>);
101216101216
};
101217101217
};
101218101218
responses: {
@@ -101247,7 +101247,7 @@ export interface operations {
101247101247
*/
101248101248
path?: "/" | "/docs";
101249101249
};
101250-
}) & (Record<string, never> | Record<string, never>)) | null;
101250+
}) & (Record<string, unknown> | Record<string, unknown>)) | null;
101251101251
};
101252101252
};
101253101253
responses: {
@@ -102039,7 +102039,7 @@ export interface operations {
102039102039
reviewers?: (string)[];
102040102040
/** @description An array of team `slug`s that will be requested. */
102041102041
team_reviewers?: (string)[];
102042-
} & (Record<string, never> | Record<string, never>);
102042+
} & (Record<string, unknown> | Record<string, unknown>);
102043102043
};
102044102044
};
102045102045
responses: {
@@ -105732,7 +105732,7 @@ export interface operations {
105732105732
/** @description Default response */
105733105733
200: {
105734105734
content: {
105735-
"application/json": components["schemas"]["interaction-limit-response"] | Record<string, never>;
105735+
"application/json": components["schemas"]["interaction-limit-response"] | Record<string, unknown>;
105736105736
};
105737105737
};
105738105738
/** @description Response when there are no restrictions */

0 commit comments

Comments
 (0)