Home Reference Source Repository

Function

Static Public Summary
public

createAsyncProxy(target: Object, handler: Object): Proxy

Create an async Proxy.

Static Public

public createAsyncProxy(target: Object, handler: Object): Proxy source

import {createAsyncProxy} from 'async-proxy/src/async-proxy.js'

Create an async Proxy.

Params:

NameTypeAttributeDescription
target Object

target object

handler Object
  • optional
  • default: {}

Proxy handler

handler.get function(target: Object, path: string[]): Object

get handler

handler.apply function(target: Object, path: string[], caller: Object, args: Object[]): Object

apply handler

handler.set function(target: Object, path: string[], value: Object): boolean

set handler

handler.deleteProperty function(target: Object, path: string[]): boolean

deleteProperty handler

Return:

Proxy

an async Proxy