@actor-system/behaviors
Advanced tools
| import { Behavior } from '@actor-system/core'; | ||
| /** | ||
| * Creates a named version of a behavior using template literal syntax. | ||
| * This is useful for debugging and behavior change tracking. | ||
| */ | ||
| declare const named: (strings: TemplateStringsArray, ...values: unknown[]) => <B extends Behavior<unknown>>(targetBehavior: B) => B; | ||
| export { named }; |
| import { Behavior } from '@actor-system/core/internal'; | ||
| /** | ||
| * Creates a named version of a behavior using template literal syntax. | ||
| * This is useful for debugging and behavior change tracking. | ||
| */ | ||
| declare const named: (strings: TemplateStringsArray, ...values: unknown[]) => <B extends Behavior<unknown>>(targetBehavior: B) => B; | ||
| export { named }; |
| /** | ||
| * Creates a named version of a behavior using template literal syntax. | ||
| * This is useful for debugging and behavior change tracking. | ||
| */ | ||
| const named = (strings, ...values) => (targetBehavior) => ({ | ||
| ...targetBehavior, | ||
| _name: String.raw(strings, ...values), | ||
| }); | ||
| export { named }; |
+1
-0
| export { empty } from './empty.js'; | ||
| export { intercept } from './intercept.js'; | ||
| export { named } from './named.js'; | ||
| export { ReceiveMessage, ReceiveSignal, receive, receiveMessage, receiveSignal } from './receive.js'; | ||
@@ -4,0 +5,0 @@ export { restart } from './restart.js'; |
| export { empty } from './empty.internal.js'; | ||
| export { intercept } from './intercept.internal.js'; | ||
| export { named } from './named.internal.js'; | ||
| export { ReceiveMessage, ReceiveSignal, receive, receiveMessage, receiveSignal } from './receive.internal.js'; | ||
@@ -4,0 +5,0 @@ export { restart } from './restart.internal.js'; |
+1
-0
| export { empty } from './empty.js'; | ||
| export { intercept } from './intercept.js'; | ||
| export { named } from './named.js'; | ||
| export { receive, receiveMessage, receiveSignal } from './receive.js'; | ||
@@ -4,0 +5,0 @@ export { restart } from './restart.js'; |
+1
-0
@@ -8,4 +8,5 @@ import { behavior, $type } from '@actor-system/core'; | ||
| _checkpoint: checkpoint, | ||
| _name: "restart", | ||
| }); | ||
| export { restart }; |
+1
-0
@@ -7,4 +7,5 @@ import { behavior, $type } from '@actor-system/core'; | ||
| _operation: "stop", | ||
| _name: "stop", | ||
| }; | ||
| export { stopped }; |
+2
-2
| { | ||
| "name": "@actor-system/behaviors", | ||
| "version": "0.0.14", | ||
| "version": "0.0.15", | ||
| "type": "module", | ||
@@ -31,3 +31,3 @@ "scripts": { | ||
| "dependencies": { | ||
| "@actor-system/core": "0.0.13" | ||
| "@actor-system/core": "0.0.14" | ||
| }, | ||
@@ -34,0 +34,0 @@ "devDependencies": { |
20497
5.91%42
7.69%416
7.22%+ Added
- Removed
Updated