From d2a56c95c28a9ef8d71be2dc237214e3d7df4a4e Mon Sep 17 00:00:00 2001 From: Chantha Date: Fri, 16 Oct 2020 11:48:05 +0700 Subject: [PATCH] decalre moudle 1.0.4 --- .idea/.gitignore | 5 +++ .idea/codeStyles/Project.xml | 40 ++++++++++++++++++++ .idea/codeStyles/codeStyleConfig.xml | 5 +++ .idea/inspectionProfiles/Project_Default.xml | 6 +++ .idea/invoice-print.iml | 12 ++++++ .idea/misc.xml | 6 +++ .idea/modules.xml | 8 ++++ .idea/vcs.xml | 6 +++ src/index.tsx | 2 +- src/typings.d.ts | 17 ++++++--- 10 files changed, 100 insertions(+), 7 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/invoice-print.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..8ce5817 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..03d9549 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/invoice-print.iml b/.idea/invoice-print.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/.idea/invoice-print.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..24eb271 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..0441744 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/index.tsx b/src/index.tsx index bd0d647..2e60070 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -9,6 +9,6 @@ export const ExampleComponent = ({ text }: Props) => { return
Example Component: {text}
} -export * from 'pdfmake/interfaces' +// export * from 'pdfmake/interfaces' export * from 'pdfmake/build/pdfmake' export * from './invoice' diff --git a/src/typings.d.ts b/src/typings.d.ts index cd16102..a88021a 100644 --- a/src/typings.d.ts +++ b/src/typings.d.ts @@ -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> {} +interface SvgrComponent + extends React.StatelessComponent> {} 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' +}