missing optional, mapped types
When TypeDoc is given the following to document, it says the type of Test
is { x: 1 | undefined }
instead of { x?: 1 | undefined }
declare function buildObj<T>(x: T): {
[K in keyof T]?: 1;
};
export const Test = buildObj({ x: 1 });
This happens with exactOptionalPropertyTypes
both on and off.
Owner Name | TypeStrong |
Repo Name | typedoc |
Full Name | TypeStrong/typedoc |
Language | TypeScript |
Created Date | 2014-05-24 |
Updated Date | 2023-03-19 |
Star Count | 6487 |
Watcher Count | 68 |
Fork Count | 639 |
Issue Count | 48 |
Issue Title | Created Date | Updated Date |
---|