glitch-soc/mastodon

View on GitHub
app/javascript/flavours/glitch/models/status.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { RecordOf } from 'immutable';

import type { ApiPreviewCardJSON } from 'flavours/glitch/api_types/statuses';

export type { StatusVisibility } from 'flavours/glitch/api_types/statuses';

// Temporary until we type it correctly
export type Status = Immutable.Map<string, unknown>;

type CardShape = Required<ApiPreviewCardJSON>;

export type Card = RecordOf<CardShape>;

export type MediaAttachment = Immutable.Map<string, unknown>;