# Class TextParser

#### Hierarchy (View Summary)

- DocParser
  - TextParser

- Defined in src/DocParser/parsers/TextParser.class.ts:6

##### Index

### Constructors

constructor

### Properties

supportedExtensions
supportedMimeTypes

### Methods

parse

## Constructors

### constructor

- new TextParser(): TextParser

  #### Returns TextParser

  Inherited from DocParser.constructor

  - Defined in src/DocParser/DocParser.class.ts:55

## Properties

### `Protected` supportedExtensions

supportedExtensions: string[] = ...

Overrides DocParser.supportedExtensions

- Defined in src/DocParser/parsers/TextParser.class.ts:8

### `Protected` supportedMimeTypes

supportedMimeTypes: string[] = ...

Overrides DocParser.supportedMimeTypes

- Defined in src/DocParser/parsers/TextParser.class.ts:7

## Methods

### parse

- parse(source: string, params?: TDocumentParseSettings): Promise<TParsedDocument>

  #### Parameters

  - source: string
  - `Optional` params: TDocumentParseSettings

  #### Returns Promise<TParsedDocument>

  Overrides DocParser.parse

  - Defined in src/DocParser/parsers/TextParser.class.ts:9