# DataImportFileHandler

Canonical page: https://www.adaptabletools.com/docs/reference/dataimportfilehandler

Files that can be handled by Data Import

```ts title="TypeScript"
export interface DataImportFileHandler<T = Record<string, any>> 
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [fileExtension](https://www.adaptabletools.com/docs/reference/dataimportfilehandler.md#fileextension) | `string` | Name of File Extension |
| [handleFile](https://www.adaptabletools.com/docs/reference/dataimportfilehandler.md#handlefile) | `(file: File) => Promise<T[]>` | Async function which handles the import returning a Data Record |

## Property Details

### fileExtension

Name of File Extension

```ts title="TypeScript"
fileExtension?: string;
```

###### Property Value

`string`

### handleFile

Async function which handles the import returning a Data Record

```ts title="TypeScript"
handleFile: (file: File) => Promise<T[]>;
```

###### Property Value

`(file: File) => Promise<T[]>`
