@forklaunch/internal 0.0.4 → 0.0.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.
- package/lib/index.d.mts +1 -2
- package/lib/index.d.ts +1 -2
- package/package.json +1 -1
package/lib/index.d.mts
CHANGED
|
@@ -2,7 +2,6 @@ import { AnySchemaValidator, IdiomaticSchema, Schema, UnboxedObjectSchema } from
|
|
|
2
2
|
import { TypeboxSchemaValidator } from '@forklaunch/validator/typebox';
|
|
3
3
|
import { ZodSchemaValidator } from '@forklaunch/validator/zod';
|
|
4
4
|
import { InstanceTypeRecord } from '@forklaunch/common';
|
|
5
|
-
import { EntityManager } from '@mikro-orm/core';
|
|
6
5
|
|
|
7
6
|
declare class IdentityRequestMapper<T, SchemaValidator extends AnySchemaValidator> {
|
|
8
7
|
dto: T;
|
|
@@ -101,7 +100,7 @@ type ResponseMapperConstructor<SchemaValidator extends AnySchemaValidator, Dto,
|
|
|
101
100
|
* @template Dto - The type of the DTO object.
|
|
102
101
|
* @template Entity - The type of the entity object.
|
|
103
102
|
*/
|
|
104
|
-
type RequestMapperConstructor<SchemaValidator extends AnySchemaValidator, Dto, Entity, DeserializeDtoToEntity extends (
|
|
103
|
+
type RequestMapperConstructor<SchemaValidator extends AnySchemaValidator, Dto, Entity, DeserializeDtoToEntity extends (dto: Dto, ...additionalArgs: never[]) => Promise<Entity> = (dto: Dto, ...additionalArgs: never[]) => Promise<Entity>> = new (schemaValidator: SchemaValidator) => {
|
|
105
104
|
dto: Dto;
|
|
106
105
|
_Entity: Entity;
|
|
107
106
|
deserializeDtoToEntity: DeserializeDtoToEntity;
|
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { AnySchemaValidator, IdiomaticSchema, Schema, UnboxedObjectSchema } from
|
|
|
2
2
|
import { TypeboxSchemaValidator } from '@forklaunch/validator/typebox';
|
|
3
3
|
import { ZodSchemaValidator } from '@forklaunch/validator/zod';
|
|
4
4
|
import { InstanceTypeRecord } from '@forklaunch/common';
|
|
5
|
-
import { EntityManager } from '@mikro-orm/core';
|
|
6
5
|
|
|
7
6
|
declare class IdentityRequestMapper<T, SchemaValidator extends AnySchemaValidator> {
|
|
8
7
|
dto: T;
|
|
@@ -101,7 +100,7 @@ type ResponseMapperConstructor<SchemaValidator extends AnySchemaValidator, Dto,
|
|
|
101
100
|
* @template Dto - The type of the DTO object.
|
|
102
101
|
* @template Entity - The type of the entity object.
|
|
103
102
|
*/
|
|
104
|
-
type RequestMapperConstructor<SchemaValidator extends AnySchemaValidator, Dto, Entity, DeserializeDtoToEntity extends (
|
|
103
|
+
type RequestMapperConstructor<SchemaValidator extends AnySchemaValidator, Dto, Entity, DeserializeDtoToEntity extends (dto: Dto, ...additionalArgs: never[]) => Promise<Entity> = (dto: Dto, ...additionalArgs: never[]) => Promise<Entity>> = new (schemaValidator: SchemaValidator) => {
|
|
105
104
|
dto: Dto;
|
|
106
105
|
_Entity: Entity;
|
|
107
106
|
deserializeDtoToEntity: DeserializeDtoToEntity;
|