decalre moudle 1.0.4

This commit is contained in:
Chantha
2020-10-16 11:48:05 +07:00
parent 9befe7a187
commit d2a56c95c2
10 changed files with 100 additions and 7 deletions

View File

@@ -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
View File

@@ -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'
}