UNPKG

535 BMarkdownView Raw
1## TypeScript for pg-minify
2
3Complete TypeScript 3.x declarations for the module.
4
5### Inclusion
6
7Typescript picks up the definitions without any manual configuration.
8
9### Usage
10
11```ts
12import * as minify from 'pg-minify';
13
14const sql = 'SELECT 1; -- comments';
15
16minify(sql); //=> SELECT 1;
17```
18
19And if you are using `"allowSyntheticDefaultImports": true` in your `tsconfig.json`,
20then you can include it like this:
21
22```ts
23import minify from 'pg-minify';
24```
25
26[pg-minify]:https://github.com/vitaly-t/pg-minify