@rvoh/psychic 0.37.0-beta.4 → 0.37.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Dream, DreamOrViewModelClassSerializerKey, DreamSerializableArray, ViewModelClass } from '@rvoh/dream';
|
|
1
2
|
export type FunctionProperties<T> = {
|
|
2
3
|
[K in keyof T as T[K] extends (...args: any[]) => any ? K : never]: T[K];
|
|
3
4
|
};
|
|
4
5
|
export type FunctionPropertyNames<T> = keyof FunctionProperties<T> & string;
|
|
5
6
|
export type StringToInt<T extends string> = T extends `${infer N extends number}` ? N : never;
|
|
7
|
+
export type DreamOrViewModelClassSerializerArrayKeys<T extends DreamSerializableArray> = T['length'] extends 0 ? string : T[0] extends typeof Dream | ViewModelClass ? DreamOrViewModelClassSerializerKey<T[0]> & DreamOrViewModelClassSerializerArrayKeys<T extends [any, ...infer Rest] ? Rest : never> : DreamOrViewModelClassSerializerArrayKeys<T extends [any, ...infer Rest] ? Rest : never>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Dream,
|
|
1
|
+
import { Dream, DreamOrViewModelClassSerializerKey, DreamSerializable, DreamSerializableArray, OpenapiAllTypes, OpenapiFormats, OpenapiSchemaArray, OpenapiSchemaBody, OpenapiSchemaBodyShorthand, OpenapiSchemaExpressionAllOf, OpenapiSchemaExpressionAnyOf, OpenapiSchemaExpressionOneOf, OpenapiSchemaExpressionRef, OpenapiSchemaObject, OpenapiSchemaProperties, SerializerCasing, ViewModelClass } from '@rvoh/dream';
|
|
2
2
|
import PsychicController from '../controller/index.js';
|
|
3
3
|
import { HttpStatusCode, HttpStatusCodeNumber } from '../error/http/status-codes.js';
|
|
4
|
+
import { DreamOrViewModelClassSerializerArrayKeys } from '../helpers/typeHelpers.js';
|
|
4
5
|
import { RouteConfig } from '../router/route-manager.js';
|
|
5
6
|
import { HttpMethod } from '../router/types.js';
|
|
6
7
|
import { OpenapiBodySegment, ReferencedSerializersAndOpenapiEndpointResponse, SerializerArray } from './body-segment.js';
|