isPersisted Function
Tests whether an EntityProps has a valid id, narrowing its type to Persisted if it does.
isPersisted<T extends EntityProps>(entity: T): entity is Persisted<T>
| Parameter | Type | Description |
|---|---|---|
| entity | T |
Returns - entity is Persisted<T>
Defined in
- core/common/src/EntityProps.ts Line 43
Last Updated: 28 October, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.