Fix all TypeScript errors and remove Storybook
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:
Ruslan Bakiev
2026-01-26 00:32:36 +07:00
parent b326d8cd76
commit 2b6cccdead
99 changed files with 419 additions and 1171 deletions

28
types/global.d.ts vendored Normal file
View 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
View 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
}
}