1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

impr(types): 🏷️ Migliorati import tipi

This commit is contained in:
Maicol Battistini
2022-01-10 17:14:37 +01:00
parent 020fc10e2c
commit 1c42f39cda
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,6 @@
import '@material/mwc-dialog';
import 'cash-dom/dist/cash';
import type {Cash} from 'cash-dom/dist/cash';
import type {Cash} from 'cash-dom';
import {uniqueId} from 'lodash';
import Lottie from 'lottie-web';
import type {

View File

@ -3,7 +3,7 @@ import '@material/mwc-list/mwc-list-item';
import '../../WebComponents/Select';
import type {LinearProgress as MWCLinearProgress} from '@material/mwc-linear-progress';
import type {Cash} from 'cash-dom/dist/cash';
import type {Cash} from 'cash-dom';
import type {
Children,
Vnode,
@ -59,6 +59,7 @@ export default class DataTable extends Component<Attributes> {
.map((value: string) => Number.parseInt(value, 10));
}
// @ts-ignore (Waiting proper fix from collect.jsd devs)
let defaultRowsPerPage: number = Number.parseInt(this.attrs.get('default-rows-per-page', '10') as string, 10);
if (Number.isInteger(defaultRowsPerPage)) {

View File

@ -2,7 +2,7 @@
import '@material/mwc-snackbar';
import 'mithril';
import type {Cash} from 'cash-dom/dist/cash';
import type {Cash} from 'cash-dom';
import type {Vnode} from 'mithril';
import {sync as render} from 'mithril-node-render';
@ -40,7 +40,7 @@ export async function showSnackbar(
cancelText: string | false = false,
closeOtherSnackbars = true
): Promise<string | 'action' | 'dismiss' | undefined> {
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
if (closeOtherSnackbars) {
const snackbars = document.querySelectorAll('mwc-snackbar');