Skip to content

Commit

Permalink
Fix messagePrototype for exactOptionalProperties: true (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcready authored Dec 7, 2023
1 parent 96b4656 commit 1e9e825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/runtime/src/message-type-contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export interface IMessageType<T extends object> extends MessageInfo {
* Contains the prototype for messages returned by create() which
* includes the `MESSAGE_TYPE` symbol pointing back to `this`.
*/
readonly messagePrototype?: Readonly<{}>;
readonly messagePrototype?: Readonly<{}> | undefined;


/**
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/message-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class MessageType<T extends object> implements IMessageType<T> {
* Contains the prototype for messages returned by create() which
* includes the `MESSAGE_TYPE` symbol pointing back to `this`.
*/
readonly messagePrototype: Readonly<{}> | undefined;
readonly messagePrototype?: Readonly<{}> | undefined;

protected readonly defaultCheckDepth = 16;
protected readonly refTypeCheck: ReflectionTypeCheck;
Expand Down

0 comments on commit 1e9e825

Please sign in to comment.