@nxtedition/types 23.0.62 → 23.0.63

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,8 +1,11 @@
1
1
  import type { RecordNameToType, DomainNameToType } from '../index.ts';
2
2
  import typia from 'typia';
3
- export declare function getSchemaByRecordName<Name extends string>(name: Name): typia.IJsonSchemaCollection.IV3_1<[
4
- RecordNameToType<Name>
5
- ]>;
6
- export declare function getSchemaByDomain<Domain extends string>(domain: Domain): typia.IJsonSchemaCollection.IV3_1<[
7
- DomainNameToType<Domain>
8
- ]>;
3
+ /** Self contained JSON schema */
4
+ export type JsonSchema = typia.IJsonSchemaApplication.Schema<"3.1">;
5
+ /**
6
+ * OpenAPI-like JSON schema with additional schemas in a 'components' field,
7
+ * with the corresponding typescript type attached as a generic type.
8
+ */
9
+ export type JsonSchemaUnit<T> = typia.IJsonSchemaUnit<"3.1", T>;
10
+ export declare function getSchemaByRecordName<Name extends string>(name: Name): JsonSchemaUnit<RecordNameToType<Name>>;
11
+ export declare function getSchemaByDomain<Domain extends string>(domain: Domain): JsonSchemaUnit<DomainNameToType<Domain>>;