Jak utworzyć typedyk Object
const _params = {} as any;
_params.name ='nazeh abel'
Open Owl
const _params = {} as any;
_params.name ='nazeh abel'
type EmptyObject = {
[K in any] : never
}
const one: EmptyObject = {}; // yes ok
const two: EmptyObject = {a: 1}; // error
const user : User | Record<string, never> = {};