@decaf-ts/db-decorators 0.6.15 → 0.6.16
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/esm/index.d.ts +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/operations/decorators.d.ts +2 -2
- package/lib/esm/operations/decorators.js +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/operations/decorators.cjs +2 -2
- package/lib/operations/decorators.d.ts +2 -2
- package/package.json +1 -1
package/lib/esm/index.d.ts
CHANGED
package/lib/esm/index.js
CHANGED
|
@@ -278,10 +278,10 @@ export declare function operation<V = object>(baseOp: OperationKeys.ON | Operati
|
|
|
278
278
|
* @template P - Represents a tuple of any parameter types that the handler function accepts.
|
|
279
279
|
*
|
|
280
280
|
* @param {string} key - The metadata key used to store and later retrieve the handler and its parameters.
|
|
281
|
-
* @param {(...
|
|
281
|
+
* @param {function(...P):boolean} handler - A predicate or handler function that receives the same parameters as the decorator
|
|
282
282
|
* and determines whether the associated logic should execute.
|
|
283
283
|
*
|
|
284
|
-
* @return {(...
|
|
284
|
+
* @return {function(...P):function(...Partial<P>):void}
|
|
285
285
|
* Returns a function that, when invoked with the given parameters, stores a metadata object containing
|
|
286
286
|
* both the parameters and the handler reference under the provided key.
|
|
287
287
|
*
|
|
@@ -396,10 +396,10 @@ export function operation(baseOp, operation = DBOperations.ALL, handler, dataToA
|
|
|
396
396
|
* @template P - Represents a tuple of any parameter types that the handler function accepts.
|
|
397
397
|
*
|
|
398
398
|
* @param {string} key - The metadata key used to store and later retrieve the handler and its parameters.
|
|
399
|
-
* @param {(...
|
|
399
|
+
* @param {function(...P):boolean} handler - A predicate or handler function that receives the same parameters as the decorator
|
|
400
400
|
* and determines whether the associated logic should execute.
|
|
401
401
|
*
|
|
402
|
-
* @return {(...
|
|
402
|
+
* @return {function(...P):function(...Partial<P>):void}
|
|
403
403
|
* Returns a function that, when invoked with the given parameters, stores a metadata object containing
|
|
404
404
|
* both the parameters and the handler reference under the provided key.
|
|
405
405
|
*
|
package/lib/index.cjs
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -418,10 +418,10 @@ function operation(baseOp, operation = constants_1.DBOperations.ALL, handler, da
|
|
|
418
418
|
* @template P - Represents a tuple of any parameter types that the handler function accepts.
|
|
419
419
|
*
|
|
420
420
|
* @param {string} key - The metadata key used to store and later retrieve the handler and its parameters.
|
|
421
|
-
* @param {(...
|
|
421
|
+
* @param {function(...P):boolean} handler - A predicate or handler function that receives the same parameters as the decorator
|
|
422
422
|
* and determines whether the associated logic should execute.
|
|
423
423
|
*
|
|
424
|
-
* @return {(...
|
|
424
|
+
* @return {function(...P):function(...Partial<P>):void}
|
|
425
425
|
* Returns a function that, when invoked with the given parameters, stores a metadata object containing
|
|
426
426
|
* both the parameters and the handler reference under the provided key.
|
|
427
427
|
*
|
|
@@ -278,10 +278,10 @@ export declare function operation<V = object>(baseOp: OperationKeys.ON | Operati
|
|
|
278
278
|
* @template P - Represents a tuple of any parameter types that the handler function accepts.
|
|
279
279
|
*
|
|
280
280
|
* @param {string} key - The metadata key used to store and later retrieve the handler and its parameters.
|
|
281
|
-
* @param {(...
|
|
281
|
+
* @param {function(...P):boolean} handler - A predicate or handler function that receives the same parameters as the decorator
|
|
282
282
|
* and determines whether the associated logic should execute.
|
|
283
283
|
*
|
|
284
|
-
* @return {(...
|
|
284
|
+
* @return {function(...P):function(...Partial<P>):void}
|
|
285
285
|
* Returns a function that, when invoked with the given parameters, stores a metadata object containing
|
|
286
286
|
* both the parameters and the handler reference under the provided key.
|
|
287
287
|
*
|