mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
fix(deps): update typescript-projects (#28371)
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
parent
5a61e589e8
commit
92b6778d2d
26 changed files with 3620 additions and 3262 deletions
|
|
@ -1,16 +1,12 @@
|
|||
import { INestApplication } from '@nestjs/common';
|
||||
import {
|
||||
ApiBodyOptions,
|
||||
DocumentBuilder,
|
||||
OpenAPIObject,
|
||||
SwaggerCustomOptions,
|
||||
SwaggerDocumentOptions,
|
||||
SwaggerModule,
|
||||
} from '@nestjs/swagger';
|
||||
import {
|
||||
OperationObject,
|
||||
ReferenceObject,
|
||||
SchemaObject,
|
||||
} from '@nestjs/swagger/dist/interfaces/open-api-spec.interface';
|
||||
import _ from 'lodash';
|
||||
import { cleanupOpenApiDoc } from 'nestjs-zod';
|
||||
import { writeFileSync } from 'node:fs';
|
||||
|
|
@ -23,6 +19,11 @@ import { extraSyncModels } from 'src/dtos/sync.dto';
|
|||
import { ApiCustomExtension, ImmichCookie, ImmichHeader, MetadataKey } from 'src/enum';
|
||||
import { LoggingRepository } from 'src/repositories/logging.repository';
|
||||
|
||||
type OperationObject = NonNullable<OpenAPIObject['paths'][string]['get']>;
|
||||
type ReferenceOrSchemaObject = Extract<ApiBodyOptions, { schema: unknown }>['schema'];
|
||||
type ReferenceObject = Extract<ReferenceOrSchemaObject, { $ref: unknown }>;
|
||||
type SchemaObject = Exclude<ReferenceOrSchemaObject, ReferenceObject>;
|
||||
|
||||
export class ImmichStartupError extends Error {}
|
||||
export const isStartUpError = (error: unknown): error is ImmichStartupError => error instanceof ImmichStartupError;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue