diff --git a/invokeai/frontend/web/package.json b/invokeai/frontend/web/package.json index 0bf236ee38..48bad31000 100644 --- a/invokeai/frontend/web/package.json +++ b/invokeai/frontend/web/package.json @@ -145,7 +145,6 @@ "ts-toolbelt": "^9.6.0", "tsafe": "^1.6.6", "typescript": "^5.3.3", - "utility-types": "^3.11.0", "vite": "^5.1.3", "vite-plugin-css-injected-by-js": "^3.4.0", "vite-plugin-dts": "^3.7.2", diff --git a/invokeai/frontend/web/pnpm-lock.yaml b/invokeai/frontend/web/pnpm-lock.yaml index f2abdd87bf..d79d482d08 100644 --- a/invokeai/frontend/web/pnpm-lock.yaml +++ b/invokeai/frontend/web/pnpm-lock.yaml @@ -268,9 +268,6 @@ devDependencies: typescript: specifier: ^5.3.3 version: 5.3.3 - utility-types: - specifier: ^3.11.0 - version: 3.11.0 vite: specifier: ^5.1.3 version: 5.1.3(@types/node@20.11.19) @@ -14147,11 +14144,6 @@ packages: which-typed-array: 1.1.14 dev: true - /utility-types@3.11.0: - resolution: {integrity: sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==} - engines: {node: '>= 4'} - dev: true - /utils-merge@1.0.1: resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} diff --git a/invokeai/frontend/web/src/services/api/types.ts b/invokeai/frontend/web/src/services/api/types.ts index d561173337..6f6018d974 100644 --- a/invokeai/frontend/web/src/services/api/types.ts +++ b/invokeai/frontend/web/src/services/api/types.ts @@ -2,7 +2,6 @@ import type { UseToastOptions } from '@invoke-ai/ui-library'; import type { EntityState } from '@reduxjs/toolkit'; import type { components, paths } from 'services/api/schema'; import type { O } from 'ts-toolbelt'; -import type { Overwrite } from 'utility-types'; export type S = components['schemas']; @@ -72,8 +71,8 @@ export type TextualInversionModelConfig = S['TextualInversionConfig']; export type DiffusersModelConfig = S['MainDiffusersConfig']; export type CheckpointModelConfig = S['MainCheckpointConfig']; export type MainModelConfig = DiffusersModelConfig | CheckpointModelConfig; -export type RefinerMainModelConfig = Overwrite; -export type NonRefinerMainModelConfig = Overwrite; +export type RefinerMainModelConfig = Omit & { base: 'sdxl-refiner' }; +export type NonRefinerMainModelConfig = Omit & { base: 'any' | 'sd-1' | 'sd-2' | 'sdxl' }; export type AnyModelConfig = | LoRAModelConfig | VAEModelConfig