mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
12 lines
652 B
TypeScript
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
|