recogn-parse
Version:
recogn-parse 提供了 识别--解析 的机制,使用者只需要添加识别器 和 解析器,然后就可以对事件进行识别和解析,适合用所有具备 识别--解析 流程的场景中,如:加载并显示各种模型、预览文件等
20 lines (11 loc) • 922 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [recogn-parse](./recogn-parse.md) > [SerialJudger](./recogn-parse.serialjudger.md)
## SerialJudger type
串行鉴定者
**Signature:**
```typescript
export type SerialJudger<Options = any> = Judge<Options>[];
```
**References:** [Judge](./recogn-parse.judge.md)
## Remarks
串行鉴定者就是一组鉴定函数,所有的鉴定函数都会依次执行,不论中间有没有失败,都会依次执行完所有的鉴定函数,并会以最后一个鉴定函数返回的结果为最终的鉴定结果。 串行鉴定者序列中的任何项识别失败都不会中止 串行鉴定者序列 的执行。 即:即使 串行鉴定者序列 SerialJudger 中的某一个 Judge 返回 null 或者 抛出错误,则仍会执行此 串行鉴定者序列 SerialJudger 中的下一个 Judge