sidebase / nuxt-pdf

📄 A easy to use, pdf exporting module to convert Nuxt 3 components into downloadable PDFs.
https://sidebase.io/nuxt-pdf/getting-started
MIT License
102 stars 11 forks source link

refactor: Improve function exports #29

Closed zoey-kaiser closed 4 months ago

zoey-kaiser commented 4 months ago

Closes N/A

Exports all PDF components directly instead of injecting them into the PDF object. This reduces the total bundle size and allows code splitting to only import the needed components instead of requiring that the module injects all the components on PDF initialization.

Improves inline documentation for all functions and removes dirty function types. These are functions, where the export type is not properly defined, leading to TS needing to infer the type, instead of it being properly set.

Checklist: