@azure-net/kit 6.0.0-next.3 → 6.0.0-next.4

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,4 +1,5 @@
1
1
  export { createAsyncAction, createAsyncResource, type AsyncActionSettings, type AsyncHelperRetry, type AsyncResourceSettings, type AsyncActionResponse } from './injectable-dependencies/index.js';
2
2
  export { RegisterProvider, type ProviderLifecycle } from './presenter/RegisterProvider.js';
3
+ export { Bound } from './presenter/Bound.js';
3
4
  export { createSchemaFactory, schema, type Schema, type RequestErrors, type ISchemaError, type ValidationResult, type ValidationRuleResult, type ValidationParams, type ValidationMessage, type ValidationErrorsMap } from './schema/index.js';
4
5
  export { createRules, validationMessagesRu, validationMessagesI18n, validationMessagesEn, type ValidationRuleParams, type BaseValidationMessages } from './schema/rules/index.js';
@@ -1,4 +1,5 @@
1
1
  export { createAsyncAction, createAsyncResource } from './injectable-dependencies/index.js';
2
2
  export { RegisterProvider } from './presenter/RegisterProvider.js';
3
+ export { Bound } from './presenter/Bound.js';
3
4
  export { createSchemaFactory, schema } from './schema/index.js';
4
5
  export { createRules, validationMessagesRu, validationMessagesI18n, validationMessagesEn } from './schema/rules/index.js';
@@ -0,0 +1 @@
1
+ export declare function Bound<This, Args extends unknown[], Return>(method: (this: This, ...args: Args) => Return, context: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Return>): void;
@@ -0,0 +1,9 @@
1
+ export function Bound(method, context) {
2
+ context.addInitializer(function () {
3
+ Object.defineProperty(this, context.name, {
4
+ value: method.bind(this),
5
+ configurable: true,
6
+ writable: true
7
+ });
8
+ });
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-net/kit",
3
- "version": "6.0.0-next.3",
3
+ "version": "6.0.0-next.4",
4
4
  "license": "MIT",
5
5
  "author": "Pixel1917",
6
6
  "description": "Universal toolkit and library collection, developed as part of the Azure-net ecosystem",