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:
@ -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 {
|
||||
|
@ -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)) {
|
||||
|
@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user