Skip to content

TypeAlias.ShallowObjectValue

github-actions[bot] edited this page Jul 8, 2026 · 34 revisions

umt / ShallowObjectValue

Type Alias: ShallowObjectValue<T>

ShallowObjectValue<T> = T extends Record<PropertyKey, infer U> ? UnionToIntersection<U> : never

Defined in: types/object/shallowObjectValue.ts:10

Extract the value type from the first level of an object

Type Parameters

T

T

Example

type Input = { a: { b: { c: {} } } }
type Output = ShallowObjectValue<Input> // { b: { c: {} } }

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally