Options
All
  • Public
  • Public/Protected
  • All
Menu

Module util/define-properties

Interfaces

Functions

Functions

default

  • default(self: Record<string, any>, fields: RlpSchemaField[], data: unknown): void
  • Defines properties on a Object. It make the assumption that underlying data is binary.

    Parameters

    • self: Record<string, any>

      the Object to define properties on

    • fields: RlpSchemaField[]

      an array fields to define. Fields can contain:

      • name - the name of the properties
      • length - the number of bytes the field can have
      • allowLess - if the field can be less than the length
      • allowEmpty
      • allowNonBinaryArray - if the field can be non binary array
      • nonBinaryArrayTransform - function to transform each item of the non binary array
    • data: unknown

    Returns void

Generated using TypeDoc