• Preparing search index...
  • The search index is not available
matter.js-monorepo
  • matter.js-monorepo
  • @matter/model
  • FieldValue
  • cast

Function cast

  • cast(type, value): FieldValue | FieldValue.Invalid | undefined
  • Convert an arbitrary value to a proper FieldValue.

    Parameters

    • type: Metatype

      casts to a native equivalent of this type

    • value: any

      value to cast

    Returns FieldValue | FieldValue.Invalid | undefined

    the cast value or FieldValue.Invalid if cast is not possible

    • Defined in packages/model/src/common/FieldValue.ts:236

Settings

Member Visibility
matter.js-monorepo
  • Loading...

Generated using TypeDoc