Skip to content

Commit

Permalink
Fix constructor, fix td
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodlik committed Feb 14, 2021
1 parent b634e7a commit 6c3e609
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
39 changes: 22 additions & 17 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
import typeScript from 'rollup-plugin-typescript2';
import typescript from 'rollup-plugin-typescript2';
import postcss from 'rollup-plugin-postcss';
import { terser } from "rollup-plugin-terser";
import { terser } from 'rollup-plugin-terser';

export default [{
input: 'src/PageFlip.ts',
output: [{ file: 'dist/js/page-flip.browser.js', format: 'umd', name: 'St' }],
plugins: [
postcss(),
typeScript({tsconfig: "tsconfig.json"}), terser()
]
}, {
input: 'src/PageFlip.ts',
output: [{ file: 'dist/js/page-flip.module.js', format: 'es' }],
plugins: [
postcss(),
typeScript({tsconfig: "tsconfig.json"}), terser()
]
}];
export default [
{
input: 'src/PageFlip.ts',
output: [{ file: 'dist/js/page-flip.browser.js', format: 'umd', name: 'St' }],
plugins: [
postcss(),
typescript({ tsconfig: 'tsconfig.json', useTsconfigDeclarationDir: true }),
terser(),
],
},
{
input: 'src/PageFlip.ts',
output: [{ file: 'dist/js/page-flip.module.js', format: 'es' }],
plugins: [
postcss(),
typescript({ tsconfig: 'tsconfig.json', useTsconfigDeclarationDir: true }),
terser(),
],
},
];
2 changes: 1 addition & 1 deletion src/PageFlip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class PageFlip extends EventObject {
* @param {HTMLElement} inBlock - Root HTML Element
* @param {Object} setting - Configuration object
*/
constructor(inBlock: HTMLElement, setting: Record<string, number | string | boolean>) {
constructor(inBlock: HTMLElement, setting: Partial<FlipSetting>) {
super();

this.setting = new Settings().getSettings(setting);
Expand Down

0 comments on commit 6c3e609

Please sign in to comment.