Type alias IHarpeeModelUpdateNestedOptions<V>

IHarpeeModelUpdateNestedOptions<V>: { getAttributes?: string[]; id: StringOrNumber; path: string | string[]; returnData?: boolean; value: any | ((val: V) => V) }

Type Parameters

Type Parameters

  • V = object

Type declaration

  • Optional getAttributes?: string[]
  • id: StringOrNumber
  • path: string | string[]

    a string or array of string indicating the path to a value

    Example

    '.author.name'
    // or
    ['author','name']
  • Optional returnData?: boolean

    when true, returns the updated data, default is true

  • value: any | ((val: V) => V)