Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils"

Index

Type aliases

Functions

Type aliases

Extractable

Extractable<T, U>: Not<U extends any ? Not<T extends U ? unknown : never> : never>

Type parameters

  • T

  • U

Not

Not<T>: Not<T>

Type parameters

  • T

Functions

asEnum

  • asEnum<E, K>(e: E, k: K & Extractable<E[keyof E], K>): Extract<E[keyof E], K>
  • Type parameters

    • E: Record<keyof E, string | number>

    • K: string | number

    Parameters

    Returns Extract<E[keyof E], K>

Generated using TypeDoc