recogn-parse
Version:
recogn-parse 提供了 识别--解析 的机制,使用者只需要添加识别器 和 解析器,然后就可以对事件进行识别和解析,适合用所有具备 识别--解析 流程的场景中,如:加载并显示各种模型、预览文件等
20 lines (11 loc) • 605 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [recogn-parse](./recogn-parse.md) > [Judge](./recogn-parse.judge.md)
## Judge type
鉴定函数
**Signature:**
```typescript
export type Judge<Options = any> = (target: any, targetOptions: Options, preResult: FormatJudgeResult) => JudgeReturn;
```
**References:** [FormatJudgeResult](./recogn-parse.formatjudgeresult.md)<!-- -->, [JudgeReturn](./recogn-parse.judgereturn.md)
## Remarks
鉴定 target 的类型 和 格式化数据,如果返回 空,表示鉴定失败