Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/typescript/src/interface-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function* buildType(type: Type): Iterable<string> {

const recordType = `Record<${keyTypeName}, ${Array.from(typeNames)
.sort()
.join(' | ')}>`;
.join(' | ')} ${mapValue.value.isNullable ? ` | null` : ''}>`;

yield isEnumKey ? `Partial<${recordType}>` : recordType;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,7 @@ describe('4.1.12 Primitive Value', () => {
);
});

// TODO: fix and enable these tests
// https://github.com/basketry/typescript/issues/139
describe.skip('map property value', () => {
describe('map property value', () => {
it.each(typeMap)(
'emits nullable `%s` as a union of `%s` and null',
async (primitive, expectedType) => {
Expand Down Expand Up @@ -407,9 +405,7 @@ describe('4.1.12 Primitive Value', () => {
);
});

// TODO: fix and enable these tests
// https://github.com/basketry/typescript/issues/139
describe.skip('map property value', () => {
describe('map property value', () => {
it.each(typeMap)(
'emits `%s` as a union of `%s` array and null',
async (primitive, expectedType) => {
Expand Down Expand Up @@ -577,9 +573,7 @@ describe('4.1.12 Primitive Value', () => {
);
});

// TODO: fix and enable these tests
// https://github.com/basketry/typescript/issues/139
describe.skip('map property value', () => {
describe('map property value', () => {
it.each(typeMap)(
'emits nullable `%s` as a union of `%s` and null',
async (primitive, expectedType) => {
Expand Down Expand Up @@ -665,9 +659,7 @@ describe('4.1.12 Primitive Value', () => {
);
});

// TODO: fix and enable these tests
// https://github.com/basketry/typescript/issues/139
describe.skip('map property value', () => {
describe('map property value', () => {
it.each(typeMap)(
'emits `%s` as a union of `%s` array and null',
async (primitive, expectedType) => {
Expand Down