Fixes: 1. media.ts: wrap placeholder generation in try-catch 2. toolbar.ts: check r.ok, display error message in popover
24 lines
493 B
TypeScript
24 lines
493 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;
|
|
content?: PortableTextBlock[];
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
publishedAt: Date | null;
|
|
bylines?: ContentBylineCredit[];
|
|
}
|
|
|
|
declare module "emdash" {
|
|
interface EmDashCollections {
|
|
pages: Page;
|
|
}
|
|
} |