belgattitude/httpx

View on GitHub
packages/assert/src/object.types.ts

Summary

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

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