Say I have:
type User = { ... }
I want to create a new user but set it to be an empty object:
user
const user: User
you can do this as below in typescript
const _params = {} as any; _params.name ='nazeh abel'
since typescript does not behave like javascript so we have to make the type as any otherwise it won't allow you to assign property dynamically to an object