Function: isErrorOfType ​
â–¸ isErrorOfType<T
>(error
, code
): error is VueFlowError<T, ErrorArgs<T>>
Type parameters ​
Name | Type |
---|---|
T | extends ErrorCode |
Parameters ​
Name | Type |
---|---|
error | VueFlowError <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]> |
code | T |
Returns ​
error is VueFlowError<T, ErrorArgs<T>>