Home > d3-blueprint > assertLifecycleEvent
assertLifecycleEvent() function
Throws if the given string is not a valid lifecycle event key.
Signature:
typescript
export declare function assertLifecycleEvent(key: string): asserts key is LifecycleEventKey;Parameters
Parameter | Type | Description |
|---|---|---|
key | string |
Returns:
asserts key is LifecycleEventKey