跳转到内容
简体中文

persistenceIdRejection

此内容尚不支持你的语言。

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