Options
All
  • Public
  • Public/Protected
  • All
Menu

Module valuetypes

Index

Functions

BitMask

  • BitMask<T>(obj: T): T
  • Define an BitMask type.

    Type parameters

    • T

    Parameters

    • obj: T

      A JavaScript literal object containing BitMask names and values

    Returns T

    The defined BitMask type

assertIsEnum

  • assertIsEnum<EnumT>(enumType: EnumT): assertsenumType is EnumT & EnumExtras<EnumT>

ccbitmask

  • ccbitmask(bitmaskx: any): void

ccenum

  • ccenum<EnumT>(enumType: EnumT): void
  • Make the enum type enumType as enumeration so that Creator may identify, operate on it. Formally, as a result of invocation on this function with enum type enumType:

    • Enum.isEnum(enumType) returns true;
    • Enum.getList(enumType) returns the enumerators of enumType.

    Type parameters

    • EnumT: {}

    Parameters

    • enumType: EnumT

      An enum type, eg, a kind of type with similar semantic defined by TypeScript.

    Returns void

updateList

  • updateList<EnumT>(enumType: EnumT): keyof Enumerator<EnumT>[]

Generated using TypeDoc