# poi-preset-typescript

## Install

```bash
yarn add typescript poi-preset-typescript --dev
```

## Usage

```js
// poi.config.js
module.exports = {
  presets: [
    require('poi-preset-typescript')(/* options */)
  ]
}
```

You will also need a `tsconfig.json` in your project, to make it work in Vue project, please check out https://vuejs.org/v2/guide/typescript.html 

## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### presetTypescript

Add TypeScript support

**Parameters**

-   `options` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**  (optional, default `{}`)
    -   `options.loaderOptions` **any** Options for ts-loader. (optional, default `undefined`)

## License

MIT © [EGOIST](https://github.com/egoist)
