We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
metadata
1 parent e8f41bc commit 720dcd8Copy full SHA for 720dcd8
src/engine/world/actor/player/player.ts
@@ -124,11 +124,9 @@ export class Player extends Actor {
124
* You cannot guarantee that this will be populated with data, so you should always check for the existence of the
125
* metadata you are looking for before using it.
126
*
127
- * The ! is used to tell the compiler that we know this property will be defined.
128
- *
129
* @author jameskmonger
130
*/
131
- public readonly metadata!: (Actor['metadata'] & Partial<PlayerMetadata>);
+ public readonly metadata: (Actor['metadata'] & Partial<PlayerMetadata>) = {};
132
133
private readonly _socket: Socket;
134
private readonly _inCipher: Isaac;
0 commit comments