Skip to content

@vue-flow/monorepoDocs


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>>

VueFlow v1.42 中文网 - 粤ICP备13048890号