Skip to content

type

Utilities in the type category.

  • AsyncFn — Represents an asynchronous function.
  • Comparator — Represents a comparison function.
  • Dict — Represents a dictionary object with arbitrary keys and values.
  • Dimensions — Represents a two-dimensional size defined by width and height.
  • DimensionsTarget — Defines a target dimension using a single axis.
  • DotPathKeys — Generates a union of all valid dot-separated key paths for a plain object type.
  • DotPathValue — Resolves the type of the value at a given dot-separated path in a plain object type.
  • Factory — Represents a factory function.
  • Getter — Represents a getter function.
  • Identity — Represents an identity function.
  • MaybeNull — Represents a value that may be null.
  • MaybeNullable — Represents a value that may be null or undefined.
  • MaybePromise — Represents a value that may be returned synchronously or as a Promise.
  • MaybeUndefined — Represents a value that may be undefined.
  • PrimitiveValue — Represents a JavaScript primitive value.
  • RoundValueFn — Function used to round a numeric value.
  • SyncFn — Represents a synchronous function.
  • ValueOrFactory — Represents a value or a factory function that produces a value.
  • ValueOrGetter — Represents a value or a getter function that produces a value.