belgattitude/httpx

View on GitHub
packages/plain-object/src/plain-object.types.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type {
  BasePlainObject,
  DefaultBasePlainObject,
  PlainObjectDeepPartialUnknown,
  PlainObjectKey,
  Simplify,
} from './internal.types';

export type PlainObject<
  TValue extends BasePlainObject = DefaultBasePlainObject,
> = TValue extends DefaultBasePlainObject
  ? Record<PlainObjectKey, unknown>
  : Simplify<PlainObjectDeepPartialUnknown<TValue>>;