Typescript allow initializer to create and instantiate an instance



The keyword partial transform fields into optional.




So we're able to initialize our object instance this way.




Pretty cool eh..



Comments

Popular posts from this blog

Windows SSH: Permissions for 'private-key' are too open

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20