clean-jsdoc-theme TypeDoc APIv0.0.0

Nullable

Nullable<T> = { [P in keyof T]?: T[P] | null }

Source: common.ts:29

Makes all properties of T optional and nullable

Type Parameters

  • T — The base type

Example

CODE
interface User {
  id: string
  name: string
  age: number
}

type PartialNullableUser = Nullable<User>
// { id?: string | null; name?: string | null; age?: number | null }