chore: 🏷️ Migliorata tipizzazione
This commit is contained in:
parent
28fcc6c07f
commit
f27fe038b7
|
@ -6,6 +6,7 @@
|
|||
"files": [
|
||||
"resources/ts/**/*"
|
||||
],
|
||||
"types": "resources/ts/types/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"build:dev": "vite build --mode development",
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"types": [
|
||||
"vite/client",
|
||||
"vite-plugin-pwa/client",
|
||||
"mithril-utilities/typings"
|
||||
"inertia-plugin/client"
|
||||
],
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
|
|
Loading…
Reference in New Issue