Skip to content

Function: isErrorOfType ​

â–¸ isErrorOfType<T>(error, code): error is VueFlowError<T, ErrorArgs<T>>

Type parameters ​

NameType
Textends ErrorCode

Parameters ​

NameType
errorVueFlowError<ErrorCode, [] | [id?: string] | [id: null | string] | [id: string, parentId: string] | [type: string] | [id: string] | [id: string] | [id: string, source: string] | [id: string, target: string] | [type: string] | [id: string, source: string, target: string] | [id: string, source: string, target: string] | [id: string] | [id: string]>
codeT

Returns ​

error is VueFlowError<T, ErrorArgs<T>>

Released under the MIT License.