chore: 🏷️ Migliorata tipizzazione

This commit is contained in:
Maicol Battistini 2023-05-01 16:01:57 +02:00
parent 28fcc6c07f
commit f27fe038b7
No known key found for this signature in database
4 changed files with 3 additions and 5 deletions

View File

@ -6,6 +6,7 @@
"files": [
"resources/ts/**/*"
],
"types": "resources/ts/types/index.d.ts",
"scripts": {
"build": "vite build",
"build:dev": "vite build --mode development",

View File

@ -1,8 +1,6 @@
/* eslint-disable @typescript-eslint/naming-convention */
// noinspection JSFileReferences,JSUnusedGlobalSymbols,LocalVariableNamingConventionJS
/// <reference types="inertia-plugin/client" />
import type Mithril from 'mithril';
import type router from 'ziggy-js';

View File

@ -1,6 +1,6 @@
import {Collection} from 'collect.js';
import type * as CSS from 'csstype';
import Mithril from 'mithril';
import 'mithril-utilities/typings';
export type VnodeCollectionItem = Record<string, Mithril.Vnode>;
export type VnodeCollection = Collection<VnodeCollectionItem>;
@ -18,7 +18,6 @@ declare module 'mithril' {
interface Attributes extends LayoutGridAttributes {
// Needed for md-dialog
dialogAction?: string | 'ok' | 'discard' | 'close' | 'cancel' | 'accept' | 'decline',
style?: string | Partial<CSS.Properties> | Partial<CSSStyleDeclaration>,
autoAnimate?: boolean
}
}

View File

@ -21,7 +21,7 @@
"types": [
"vite/client",
"vite-plugin-pwa/client",
"mithril-utilities/typings"
"inertia-plugin/client"
],
"baseUrl": ".",
"paths": {