Skip to content

TypeScript API / laikacms/storage / StorageObjectSchema

Variable: StorageObjectSchema ​

ts
const StorageObjectSchema: StandardSchemaV1<{
  content: {
   [key: string]: any;
  };
  createdAt?: string;
  key: string;
  metadata?: {
     extension?: string;
     revisionId?: string;
  };
  type: "object";
  updatedAt?: string;
}, {
  content: {
   [key: string]: any;
  };
  createdAt?: string;
  key: string;
  metadata?: {
     extension?: string;
     revisionId?: string;
  };
  type: "object";
  updatedAt?: string;
}> & Struct<{
  content: $Record<String, Any>;
  createdAt: optional<String>;
  key: String;
  metadata: optional<StandardSchemaV1<{
     extension?: string;
     revisionId?: string;
   }, {
     extension?: string;
     revisionId?: string;
   }> & Struct<{
     extension: optional<String>;
     revisionId: optional<String>;
  }>>;
  type: Literal<"object">;
  updatedAt: optional<String>;
}>;

Released under the MIT License.