DefinitelyTyped/types/markdown-pdf/markdown-pdf-tests.ts
Ange Picard 378202e216 [Create] definitions for markdown-pdf (#27897)
* Add typings for markdown-pdf

* Fix test

* Change import style to require.
2018-08-06 12:09:43 -07:00

12 lines
652 B
TypeScript

import mdPdf = require('markdown-pdf');
mdPdf().from('path').to('path', () => { }); // $ExpectType void
mdPdf().from.string('markdown').to('path', () => { }); // $ExpectType void
mdPdf({ paperOrientation: 'landscape', paperFormat: 'A3' }).from('lol').to('lol', () => { }); // $ExpectType void
mdPdf().concat.from.paths(['lol', 'lol'], {}).to('path', () => { }); // $ExpectType void
mdPdf().concat.from.strings(['lol', 'lol'], {}).to('path', () => { }); // $ExpectType void
mdPdf().from('path').to.path('path', () => { }); // $ExpectType void
mdPdf().from('path').to('path'); // $ExpectType void
mdPdf({ paperFormat: 'wrongFormat' }); // $ExpectError