0
Q:

how to create empty object typescript

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

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

user01.Email = "[email protected]";
3
 const _params = {} as any;

 _params.name ='nazeh abel'
1

New to Communities?

Join the community