Skip to content

Commit a8fde3d

Browse files
authored
Support exactOptionalPropertyTypes
A key being optional is different than the value being optional. Former indicates missing keys, while latter indicate, required key but missing value.
1 parent eaed512 commit a8fde3d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/templates/core/OpenAPI.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ export type OpenAPIConfig = {
1010
VERSION: string;
1111
WITH_CREDENTIALS: boolean;
1212
CREDENTIALS: 'include' | 'omit' | 'same-origin';
13-
TOKEN?: string | Resolver<string>;
14-
USERNAME?: string | Resolver<string>;
15-
PASSWORD?: string | Resolver<string>;
16-
HEADERS?: Headers | Resolver<Headers>;
17-
ENCODE_PATH?: (path: string) => string;
13+
TOKEN?: string | Resolver<string> | undefined;
14+
USERNAME?: string | Resolver<string> | undefined;
15+
PASSWORD?: string | Resolver<string> | undefined;
16+
HEADERS?: Headers | Resolver<Headers> | undefined;
17+
ENCODE_PATH?: ((path: string) => string) | undefined;
1818
};
1919

2020
export const OpenAPI: OpenAPIConfig = {

0 commit comments

Comments
 (0)