Answers for "initialize empty object typed typescript"

3

init empty object typescript

type User = {
    Username: string;
    Email: string;
}

const user01 = {} as User;
const user02 = <User>{};

user01.Email = "[email protected]";
Posted by: Guest on May-27-2020

Code answers related to "initialize empty object typed typescript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language