Fixes: 1. media.ts: wrap placeholder generation in try-catch 2. toolbar.ts: check r.ok, display error message in popover
39 lines
781 B
TypeScript
39 lines
781 B
TypeScript
// Generated by EmDash on dev server start
|
|
// Do not edit manually
|
|
|
|
/// <reference types="emdash/locals" />
|
|
|
|
import type { ContentBylineCredit, PortableTextBlock } from "emdash";
|
|
|
|
export interface Page {
|
|
id: string;
|
|
slug: string | null;
|
|
status: string;
|
|
title: string;
|
|
body?: PortableTextBlock[];
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
publishedAt: Date | null;
|
|
bylines?: ContentBylineCredit[];
|
|
}
|
|
|
|
export interface Post {
|
|
id: string;
|
|
slug: string | null;
|
|
status: string;
|
|
title: string;
|
|
body?: PortableTextBlock[];
|
|
excerpt?: string;
|
|
theme_color?: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
publishedAt: Date | null;
|
|
bylines?: ContentBylineCredit[];
|
|
}
|
|
|
|
declare module "emdash" {
|
|
interface EmDashCollections {
|
|
pages: Page;
|
|
posts: Post;
|
|
}
|
|
} |