GitHubPixels Website
  • Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • @systemic-games/pixels-core-utils
  • getValueKeyName

Function getValueKeyName

  • getValueKeyName<T, KeyValuesType>(value, keyValues): keyof KeyValuesType | undefined
  • Returns the key name corresponding to a given value according the passed object mapping keys to values.

    Type Parameters

    • T
    • KeyValuesType extends {
          [key: string]: T;
      }

    Parameters

    • value: T

      The value.

    • keyValues: KeyValuesType

      Object mapping keys to values.

    Returns keyof KeyValuesType | undefined

    A string with the name for the value.

    • Defined in packages/pixels-core-utils/src/keyValuesUtils.ts:60

Settings

Member Visibility
GitHubPixels Website
Documentation
  • Loading...

Generated using TypeDoc