Skip to content

TypeScript API / laikacms/documents / RecordSchema

Variable: RecordSchema ​

ts
const RecordSchema: Union<readonly [StandardSchemaV1<{
  content: {
   [key: string]: any;
  };
  createdAt?: string;
  key: string;
  language?: string;
  status: "published";
  type: "published";
  updatedAt?: string;
  version?: string;
}, {
  content: {
   [key: string]: any;
  };
  createdAt?: string;
  key: string;
  language: string;
  status: "published";
  type: "published";
  updatedAt?: string;
  version?: string;
}> & Struct<{
  content: $Record<String, Any>;
  createdAt: optional<String>;
  key: String;
  language: StandardSchemaV1<string | undefined, string> & withDecodingDefault<String, never>;
  status: Literal<"published">;
  type: Literal<"published">;
  updatedAt: optional<String>;
  version: optional<String>;
}>, StandardSchemaV1<{
  content: {
   [key: string]: any;
  };
  createdAt?: string;
  key: string;
  language?: string;
  status: string;
  type: "unpublished";
  updatedAt?: string;
  version?: string;
}, {
  content: {
   [key: string]: any;
  };
  createdAt?: string;
  key: string;
  language: string;
  status: string;
  type: "unpublished";
  updatedAt?: string;
  version?: string;
}> & Struct<{
  content: $Record<String, Any>;
  createdAt: optional<String>;
  key: String;
  language: StandardSchemaV1<string | undefined, string> & withDecodingDefault<String, never>;
  status: String;
  type: Literal<"unpublished">;
  updatedAt: optional<String>;
  version: optional<String>;
}>, StandardSchemaV1<{
  createdAt?: string;
  key: string;
  type: "folder";
  updatedAt?: string;
}, {
  createdAt?: string;
  key: string;
  type: "folder";
  updatedAt?: string;
}> & Struct<{
  createdAt: optional<String>;
  key: String;
  type: Literal<"folder">;
  updatedAt: optional<String>;
}>]>;

Released under the MIT License.