This commit is contained in:
diondiondion 2025-11-26 17:05:15 +00:00 committed by GitHub
commit 5b792725ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View File

@ -45,7 +45,6 @@ export interface ApiPreviewCardJSON {
type: string; type: string;
author_name: string; author_name: string;
author_url: string; author_url: string;
author_account?: ApiAccountJSON;
provider_name: string; provider_name: string;
provider_url: string; provider_url: string;
html: string; html: string;

View File

@ -7,8 +7,6 @@ export type { StatusVisibility } from 'mastodon/api_types/statuses';
// Temporary until we type it correctly // Temporary until we type it correctly
export type Status = Immutable.Map<string, unknown>; export type Status = Immutable.Map<string, unknown>;
type CardShape = Required<ApiPreviewCardJSON>; export type Card = RecordOf<ApiPreviewCardJSON>;
export type Card = RecordOf<CardShape>;
export type MediaAttachment = Immutable.Map<string, unknown>; export type MediaAttachment = Immutable.Map<string, unknown>;