You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interfaceUser{username: string;isAdmin: boolean;dateCreated: Date;}functionnewUser(userOptions: OptionalExcept<User,'username'>): User{return{// Default values for optionals (if specified in userOptions, will be overwritten)isAdmin: false,dateCreated: newDate(),// Specified values (including the username, which we kept as required)
...userOptions};}
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
The funding will be given to active contributors.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered:
A common use case of making a
Partial
of an object, but leaving a few keys as is.Example:
Upvote & Fund
The text was updated successfully, but these errors were encountered: