<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [recogn-parse](./recogn-parse.md) &gt; [RecognParse](./recogn-parse.recognparse.md) &gt; [add](./recogn-parse.recognparse.add.md)

## RecognParse.add() method

给指定类型添加鉴定解析器

**Signature:**

```typescript
add(type: string, judgerParser: RecognParser<TOptions>): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

type


</td><td>

string


</td><td>

类型


</td></tr>
<tr><td>

judgerParser


</td><td>

[RecognParser](./recogn-parse.recognparser.md)<!-- -->&lt;TOptions&gt;


</td><td>

包含鉴定器 和 解析器


</td></tr>
</tbody></table>
**Returns:**

void

