Skip to content

TypeScript API / laikacms/documents / UnpublishedUpdateSchema

Variable: UnpublishedUpdateSchema ​

ts
const UnpublishedUpdateSchema: StandardSchemaV1<{
  content?: {
   [key: string]: any;
  };
  key: string;
  language?: string;
  status?: string;
}, {
  content?: {
   [key: string]: any;
  };
  key: string;
  language?: string;
  status?: string;
}> & Struct<{
  content: optional<$Record<String, Any>>;
  key: String;
  language: optional<StandardSchemaV1<string | undefined, string> & withDecodingDefault<String, never>>;
  status: optional<String>;
}>;

Schema for updating an unpublished document Only key is required, content and status can be changed to transition between states

Released under the MIT License.