@navios/core 0.1.4 → 0.1.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/dist/index.d.mts CHANGED
@@ -893,7 +893,7 @@ type ClassSchemaAttribute<T extends ZodType> = ((value: z.input<T>) => <T extend
893
893
  };
894
894
  declare class AttributeFactory {
895
895
  static createAttribute(token: symbol): ClassAttribute;
896
- static createAttribute<T extends ZodType>(token: symbol, value: z.input<T>): ClassSchemaAttribute<T>;
896
+ static createAttribute<T extends ZodType>(token: symbol, schema: T): ClassSchemaAttribute<T>;
897
897
  static get(attribute: ClassAttribute, target: ModuleMetadata | ControllerMetadata | EndpointMetadata): true | null;
898
898
  static get<T extends ZodType>(attribute: ClassSchemaAttribute<T>, target: ModuleMetadata | ControllerMetadata | EndpointMetadata): z.output<T> | null;
899
899
  static getAll(attribute: ClassAttribute, target: ModuleMetadata | ControllerMetadata | EndpointMetadata): Array<true> | null;
package/dist/index.d.ts CHANGED
@@ -893,7 +893,7 @@ type ClassSchemaAttribute<T extends ZodType> = ((value: z.input<T>) => <T extend
893
893
  };
894
894
  declare class AttributeFactory {
895
895
  static createAttribute(token: symbol): ClassAttribute;
896
- static createAttribute<T extends ZodType>(token: symbol, value: z.input<T>): ClassSchemaAttribute<T>;
896
+ static createAttribute<T extends ZodType>(token: symbol, schema: T): ClassSchemaAttribute<T>;
897
897
  static get(attribute: ClassAttribute, target: ModuleMetadata | ControllerMetadata | EndpointMetadata): true | null;
898
898
  static get<T extends ZodType>(attribute: ClassSchemaAttribute<T>, target: ModuleMetadata | ControllerMetadata | EndpointMetadata): z.output<T> | null;
899
899
  static getAll(attribute: ClassAttribute, target: ModuleMetadata | ControllerMetadata | EndpointMetadata): Array<true> | null;