@rvoh/psychic 0.37.8 → 0.37.9
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,9 +1,10 @@
|
|
|
1
|
-
import { DreamSerializable, DreamSerializableArray } from '@rvoh/dream';
|
|
1
|
+
import { Dream, DreamSerializable, DreamSerializableArray } from '@rvoh/dream';
|
|
2
2
|
import { OpenapiEndpointRendererOpts } from '../openapi-renderer/endpoint.js';
|
|
3
3
|
export declare function BeforeAction(opts?: {
|
|
4
4
|
isStatic?: boolean;
|
|
5
5
|
only?: string[];
|
|
6
6
|
except?: string[];
|
|
7
7
|
}): any;
|
|
8
|
-
export declare function OpenAPI
|
|
9
|
-
export declare function OpenAPI(
|
|
8
|
+
export declare function OpenAPI(): any;
|
|
9
|
+
export declare function OpenAPI<const ForOption extends typeof Dream>(opts: OpenapiEndpointRendererOpts<undefined, ForOption>): any;
|
|
10
|
+
export declare function OpenAPI<const I extends DreamSerializable | DreamSerializableArray, const ForOption extends typeof Dream>(modelOrSerializer: I, opts?: OpenapiEndpointRendererOpts<I, ForOption>): any;
|
|
@@ -538,7 +538,7 @@ export interface OpenapiEndpointRendererDefaultResponseOption {
|
|
|
538
538
|
description?: string;
|
|
539
539
|
maybeNull?: boolean;
|
|
540
540
|
}
|
|
541
|
-
export type OpenapiSchemaRequestBodyForOption<Serializable extends DreamSerializable | DreamSerializableArray | undefined, ForOption extends typeof Dream =
|
|
541
|
+
export type OpenapiSchemaRequestBodyForOption<Serializable extends DreamSerializable | DreamSerializableArray | undefined, ForOption extends typeof Dream | undefined = undefined> = OpenapiSchemaRequestBodyForDreamClass<ForOption extends typeof Dream ? ForOption : typeof Dream> | OpenapiSchemaRequestBodyForBaseDreamClass<Serializable>;
|
|
542
542
|
export interface OpenapiSchemaRequestBodyForDreamClass<ForOption extends typeof Dream> {
|
|
543
543
|
/**
|
|
544
544
|
* provide an explicit dream class here, and the request body
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@rvoh/psychic",
|
|
4
4
|
"description": "Typescript web framework",
|
|
5
|
-
"version": "0.37.
|
|
5
|
+
"version": "0.37.9",
|
|
6
6
|
"author": "RVOHealth",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -87,4 +87,4 @@
|
|
|
87
87
|
"winston": "^3.14.2"
|
|
88
88
|
},
|
|
89
89
|
"packageManager": "yarn@4.7.0"
|
|
90
|
-
}
|
|
90
|
+
}
|