Options
All
  • Public
  • Public/Protected
  • All
Menu

Module shared

Index

Type aliases

Functions

Type aliases

GetID

GetID<T>: (t: T) => ID

Function used to get the unique ID of an entity

Type parameters

  • T

Type declaration

    • (t: T): ID
    • Parameters

      • t: T

      Returns ID

ID

ID: string | number

EntityStore supports string and number values for unique IDs

Predicate

Predicate<T>: (t: T) => boolean

Predicate used for filtering entities

Type parameters

  • T

Type declaration

    • (t: T): boolean
    • Parameters

      • t: T

      Returns boolean

Functions

isID

  • isID(value: unknown): value is ID
  • Type guard used to check if any value is a valid entity ID

    Parameters

    • value: unknown

    Returns value is ID

    true if the value is an ID (string or number), false otherwise

Generated using TypeDoc