Skip to content

@vue-flow/monorepo • Docs


Function: isErrorOfType() ​

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

Type Parameters ​

• T extends ErrorCode

Parameters ​

• error: VueFlowError<ErrorCode, [] | [string] | [null | string] | [string, string] | [string] | [string] | [string] | [string, string] | [string, string] | [string] | [string, string, string] | [string, string, string] | [string] | [string]>

• code: T

Returns ​

error is VueFlowError<T, ErrorArgs<T>>

Released under the MIT License.