Zum Inhalt springen
Deutsch

persistenceIdRejection

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

persistenceIdRejection(persistenceId): string | null

Defined in: src/persistence/storage/PersistenceIdValidator.ts:83

Why persistenceId is unusable as a storage key, or null when it is fine.

Split out from assertValidPersistenceId so a caller that owes its own error type can reuse the rules rather than restate them — DurableStateOptionsValidator turns the same reason into an OptionsError, because there the id arrives as an option and the options layer owns that failure.

string

string | null