Skip to content

TypeScript API / laikacms/storage / LockSchema

Variable: LockSchema ​

ts
const LockSchema: StandardSchemaV1<{
  acquiredAt: string;
  expiresAt: string;
  key: string;
  owner: {
     id: string;
     name: string;
  };
}, {
  acquiredAt: Utc;
  expiresAt: Utc;
  key: string;
  owner: {
     id: string;
     name: string;
  };
}> & Struct<{
  acquiredAt: DateTimeUtcFromString;
  expiresAt: DateTimeUtcFromString;
  key: String;
  owner: Struct<{
     id: String;
     name: String;
  }>;
}>;

The public projection of a lock: what any caller may see.

Deliberately carries no LockToken, so reading a lock never grants the ability to release or write through it.

Released under the MIT License.