Skip to content

Commit

Permalink
fix: typing and upgrade lerna
Browse files Browse the repository at this point in the history
  • Loading branch information
si3nloong committed Mar 3, 2021
1 parent 17a93c9 commit f313905
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions components/bottom-sheet/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { SvelteComponentDev, SvelteComponentTyped } from "svelte/internal";
import { SvelteComponent } from "svelte";
import type { SvelteComponentTyped } from "svelte/internal";

type BottomSheetOption = {
label: string;
value: string;
icon?: string | SvelteComponentDev | ReturnType<SvelteComponentDev>;
icon?: string | typeof SvelteComponent;
disabled?: boolean;
nowrap?: boolean;
selected?: boolean;
Expand Down
5 changes: 3 additions & 2 deletions components/table/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { SvelteComponent } from "svelte";
import type { SvelteComponentTyped } from "svelte/internal";

export type TableColumn = {
Expand All @@ -7,14 +8,14 @@ export type TableColumn = {
align: string | "left" | "center" | "right";
width: number | string;
value: ReturnType<any>;
component: any;
component: typeof SvelteComponent;
};

export type TableItem = Record<string, any> | object;

export type TableProps = {
ref?: null | HTMLDivElement;
key: string;
key?: string;
columns: Partial<TableColumn>[];
items: null | TableItem[];
striped?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"fs-extra": "^9.1.0",
"jest": "^26.6.3",
"jest-transform-svelte": "^2.1.1",
"lerna": "^3.22.1",
"lerna": "^4.0.0",
"node-sass": "^5.0.0",
"rollup": "^2.40.0",
"rollup-plugin-css-only": "^3.1.0",
Expand Down

0 comments on commit f313905

Please sign in to comment.