Skip to content

Commit

Permalink
fix: Change constructor to public
Browse files Browse the repository at this point in the history
  • Loading branch information
yitengjun committed May 23, 2023
1 parent b910fe8 commit b3698be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions demo/ukiyo.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { UkiyoOptions, TElement } from '../types/index';
export default class Ukiyo {
private elements;
private options;
Expand All @@ -7,7 +8,7 @@ export default class Ukiyo {
private timer?;
private onResizeEvent;
private isInit;
private constructor();
constructor(elements: TElement | null, options: UkiyoOptions);
/**
* Initializes
*/
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class Ukiyo {
private onResizeEvent: EventListenerOrEventListenerObject;
private isInit: boolean;

private constructor(elements: TElement | null, options: UkiyoOptions) {
constructor(elements: TElement | null, options: UkiyoOptions) {
if (!elements) {
throw new Error(`Argument 'elements' is null.`);
}
Expand Down

0 comments on commit b3698be

Please sign in to comment.