Skip to content

Commit

Permalink
Make Message<T> have a default type param (protobufjs#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjin authored and johncsnyder committed Sep 21, 2019
1 parent 9ce7472 commit 18dc7a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export interface IExtensionMapField extends IMapField {
}

/** Abstract runtime message. */
export class Message<T extends object> {
export class Message<T extends object = object> {

/**
* Constructs a new message instance.
Expand Down

0 comments on commit 18dc7a0

Please sign in to comment.