diff --git a/package.json b/package.json index 454d3ee2a..e92dcc98a 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "files": [ "resources/ts/**/*" ], + "types": "resources/ts/types/index.d.ts", "scripts": { "build": "vite build", "build:dev": "vite build --mode development", diff --git a/resources/ts/typings/global.d.ts b/resources/ts/typings/global.d.ts index be7e96af3..737449b00 100644 --- a/resources/ts/typings/global.d.ts +++ b/resources/ts/typings/global.d.ts @@ -1,8 +1,6 @@ /* eslint-disable @typescript-eslint/naming-convention */ // noinspection JSFileReferences,JSUnusedGlobalSymbols,LocalVariableNamingConventionJS -/// - import type Mithril from 'mithril'; import type router from 'ziggy-js'; diff --git a/resources/ts/typings/jsx.d.ts b/resources/ts/typings/jsx.d.ts index d0ffdaf65..d1cc27780 100644 --- a/resources/ts/typings/jsx.d.ts +++ b/resources/ts/typings/jsx.d.ts @@ -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; export type VnodeCollection = Collection; @@ -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 | Partial, autoAnimate?: boolean } } diff --git a/tsconfig.json b/tsconfig.json index 61bc5912d..84dcf0ad5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,7 +21,7 @@ "types": [ "vite/client", "vite-plugin-pwa/client", - "mithril-utilities/typings" + "inertia-plugin/client" ], "baseUrl": ".", "paths": {