API reference › @evolu/common › Type › SimplePasswordError

Defined in: packages/common/src/Type.ts:9843

Error returned when a string is not a valid SimplePassword.

It names the failed constraint and omits the rejected string, because a password is a secret.

Extends

Properties

reason

readonly reason: "Untrimmed" | "TooLong" | "TooShort";

Defined in: packages/common/src/Type.ts:9844


type

readonly type: "SimplePassword";

Defined in: packages/common/src/Type.ts:1005

Inherited from

TypeError.type