forked from chanthasuon/lib-invoice-print
decalre moudle 1.0.4
This commit is contained in:
@@ -9,6 +9,6 @@ export const ExampleComponent = ({ text }: Props) => {
|
||||
return <div className={styles.test}>Example Component: {text}</div>
|
||||
}
|
||||
|
||||
export * from 'pdfmake/interfaces'
|
||||
// export * from 'pdfmake/interfaces'
|
||||
export * from 'pdfmake/build/pdfmake'
|
||||
export * from './invoice'
|
||||
|
||||
17
src/typings.d.ts
vendored
17
src/typings.d.ts
vendored
@@ -3,15 +3,20 @@
|
||||
* will be overridden with file-specific definitions by rollup
|
||||
*/
|
||||
declare module '*.css' {
|
||||
const content: { [className: string]: string };
|
||||
export default content;
|
||||
const content: { [className: string]: string }
|
||||
export default content
|
||||
}
|
||||
|
||||
interface SvgrComponent extends React.StatelessComponent<React.SVGAttributes<SVGElement>> {}
|
||||
interface SvgrComponent
|
||||
extends React.StatelessComponent<React.SVGAttributes<SVGElement>> {}
|
||||
|
||||
declare module '*.svg' {
|
||||
const svgUrl: string;
|
||||
const svgComponent: SvgrComponent;
|
||||
export default svgUrl;
|
||||
const svgUrl: string
|
||||
const svgComponent: SvgrComponent
|
||||
export default svgUrl
|
||||
export { svgComponent as ReactComponent }
|
||||
}
|
||||
|
||||
declare module '@cubetiq/invoice-print' {
|
||||
export * from 'pdfmake/interfaces'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user