We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interface IEditorModel { timeDimension?: TimeDimension; } const defaultEditorModel: IEditorModel = { timeDimension: undefined, }; export class EditorModel extends Record(defaultEditorModel, "EditorModel") implements IEditorModel { public constructor(values?: Partial<IEditorModel>) { super(values); } } const em = new EditorModel(); expect(em.timeDimension).toBeUndefined(); console.log(recordTransit.toJSON(em));
This code serializes timeDimension to null even though the first expect passes. Any ideas why this is happening?
timeDimension
null
expect
The text was updated successfully, but these errors were encountered:
repro: https://codesandbox.io/s/immutablejs-t910c
Sorry, something went wrong.
No branches or pull requests
This code serializes
timeDimension
tonull
even though the firstexpect
passes. Any ideas why this is happening?The text was updated successfully, but these errors were encountered: