Fix all TypeScript errors and remove Storybook
All checks were successful
Build Docker Image / build (push) Successful in 5m8s
All checks were successful
Build Docker Image / build (push) Successful in 5m8s
- Remove all Storybook files and configuration - Add type declarations for @vueuse/core, @formkit/core, vue3-apexcharts - Fix TypeScript configuration (typeRoots, include paths) - Fix Sentry config - move settings to plugin - Fix nullable prop assignments with ?? operator - Fix type narrowing issues with explicit type assertions - Fix Card component linkable computed properties - Update codegen with operationResultSuffix - Fix GraphQL operation type definitions
This commit is contained in:
28
types/global.d.ts
vendored
Normal file
28
types/global.d.ts
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
// Stub types for modules without proper type declarations
|
||||
|
||||
declare module '@vueuse/core' {
|
||||
export function useWebNotification(options?: any): any
|
||||
export function useBrowserLocation(): any
|
||||
export function useGeolocation(options?: any): any
|
||||
export function useStorage<T>(key: string, defaults: T, storage?: Storage): any
|
||||
export function watchDebounced<T>(source: any, cb: (value: T) => void, options?: any): any
|
||||
export function onClickOutside(target: any, handler: (event: PointerEvent) => void, options?: any): any
|
||||
}
|
||||
|
||||
declare module '@formkit/core' {
|
||||
export function getNode(id: string): any
|
||||
export function createMessage(options: any): any
|
||||
export type FormKitSchemaNode = any
|
||||
}
|
||||
|
||||
declare module 'vue3-apexcharts' {
|
||||
import type { Plugin } from 'vue'
|
||||
const VueApexCharts: Plugin
|
||||
export default VueApexCharts
|
||||
}
|
||||
|
||||
interface Window {
|
||||
chatwootSDK: {
|
||||
run: (config: { websiteToken: string; baseUrl: string }) => void
|
||||
}
|
||||
}
|
||||
16
types/nuxt-modules.d.ts
vendored
Normal file
16
types/nuxt-modules.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
// Type augmentations for Nuxt modules with incomplete types
|
||||
|
||||
declare module '@nuxtjs/i18n' {
|
||||
interface UserNuxtI18nOptions {
|
||||
lazy?: boolean
|
||||
}
|
||||
}
|
||||
|
||||
declare module '@sentry/nuxt/module' {
|
||||
interface SentryNuxtModuleOptions {
|
||||
dsn?: string
|
||||
environment?: string
|
||||
tracesSampleRate?: number
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user