Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public initialize (
handleUpdate: (update: Record) => Promise,
handleError: (error: any) => void,
models: ag.PlainObjectToModelTransformer
): void {
this.handleUpdate = handleUpdate
this.handleError = handleError
this.models = models
this.client = new TdWebClient({
...this.config,
onUpdate: (update) => this.handleUpdate(this.deserialize(update))
})
}