@navios/di 0.1.1 → 0.1.3

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.
@@ -289,7 +289,7 @@ declare interface Injectors {
289
289
  inject<T>(token: FactoryInjectionToken<T, any>): Promise<T>;
290
290
  syncInject<T extends ClassType>(token: T): InstanceType<T>;
291
291
  syncInject<T, S extends AnyZodObject>(token: InjectionToken<T, S>, args: z.input<S>): T;
292
- syncInject<T, S extends ZodOptional<AnyZodObject>>(token: InjectionToken<T, S>, args: z.input<S>): T;
292
+ syncInject<T, S extends ZodOptional<AnyZodObject>>(token: InjectionToken<T, S>, args?: z.input<S>): T;
293
293
  syncInject<T>(token: InjectionToken<T, undefined>): T;
294
294
  syncInject<T>(token: BoundInjectionToken<T, any>): T;
295
295
  syncInject<T>(token: FactoryInjectionToken<T, any>): T;
@@ -512,7 +512,7 @@ export { ServiceLocatorManager as ServiceLocatorManager_alias_1 }
512
512
  declare const syncInject: {
513
513
  <T extends ClassType_2>(token: T): InstanceType<T>;
514
514
  <T, S extends AnyZodObject>(token: InjectionToken_2<T, S>, args: input<S>): T;
515
- <T, S extends ZodOptional<AnyZodObject>>(token: InjectionToken_2<T, S>, args: input<S>): T;
515
+ <T, S extends ZodOptional<AnyZodObject>>(token: InjectionToken_2<T, S>, args?: input<S>): T;
516
516
  <T>(token: InjectionToken_2<T, undefined>): T;
517
517
  <T>(token: BoundInjectionToken_2<T, any>): T;
518
518
  <T>(token: FactoryInjectionToken_2<T, any>): T;
@@ -289,7 +289,7 @@ declare interface Injectors {
289
289
  inject<T>(token: FactoryInjectionToken<T, any>): Promise<T>;
290
290
  syncInject<T extends ClassType>(token: T): InstanceType<T>;
291
291
  syncInject<T, S extends AnyZodObject>(token: InjectionToken<T, S>, args: z.input<S>): T;
292
- syncInject<T, S extends ZodOptional<AnyZodObject>>(token: InjectionToken<T, S>, args: z.input<S>): T;
292
+ syncInject<T, S extends ZodOptional<AnyZodObject>>(token: InjectionToken<T, S>, args?: z.input<S>): T;
293
293
  syncInject<T>(token: InjectionToken<T, undefined>): T;
294
294
  syncInject<T>(token: BoundInjectionToken<T, any>): T;
295
295
  syncInject<T>(token: FactoryInjectionToken<T, any>): T;
@@ -512,7 +512,7 @@ export { ServiceLocatorManager as ServiceLocatorManager_alias_1 }
512
512
  declare const syncInject: {
513
513
  <T extends ClassType_2>(token: T): InstanceType<T>;
514
514
  <T, S extends AnyZodObject>(token: InjectionToken_2<T, S>, args: input<S>): T;
515
- <T, S extends ZodOptional<AnyZodObject>>(token: InjectionToken_2<T, S>, args: input<S>): T;
515
+ <T, S extends ZodOptional<AnyZodObject>>(token: InjectionToken_2<T, S>, args?: input<S>): T;
516
516
  <T>(token: InjectionToken_2<T, undefined>): T;
517
517
  <T>(token: BoundInjectionToken_2<T, any>): T;
518
518
  <T>(token: FactoryInjectionToken_2<T, any>): T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navios/di",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "author": {
5
5
  "name": "Oleksandr Hanzha",
6
6
  "email": "alex@granted.name"
@@ -11,11 +11,11 @@
11
11
  "url": "https://github.com/Arilas/navios.git"
12
12
  },
13
13
  "license": "MIT",
14
- "typings": "./dist/index.d.ts",
14
+ "typings": "./dist/src/index.d.mts",
15
15
  "main": "./dist/index.js",
16
16
  "module": "./dist/index.mjs",
17
17
  "peerDependencies": {
18
- "@navios/common": "^0.1.5",
18
+ "@navios/common": "^0.1.6",
19
19
  "zod": "^3.23.8"
20
20
  },
21
21
  "exports": {
@@ -32,7 +32,7 @@
32
32
  "./package.json": "./package.json"
33
33
  },
34
34
  "devDependencies": {
35
- "@navios/common": "^0.1.5",
35
+ "@navios/common": "^0.1.6",
36
36
  "tsx": "^4.19.4",
37
37
  "typescript": "^5.8.3",
38
38
  "zod": "^3.24.4"
@@ -35,7 +35,7 @@ export interface Injectors {
35
35
  ): T
36
36
  syncInject<T, S extends ZodOptional<AnyZodObject>>(
37
37
  token: InjectionToken<T, S>,
38
- args: z.input<S>,
38
+ args?: z.input<S>,
39
39
  ): T
40
40
  syncInject<T>(token: InjectionToken<T, undefined>): T
41
41
  syncInject<T>(token: BoundInjectionToken<T, any>): T