import type { RecordOf } from 'immutable'; import { Record } from 'immutable'; import type { ApiAntennaJSON } from 'mastodon/api_types/antennas'; type AntennaShape = Required; // no changes from server shape export type Antenna = RecordOf; const AntennaFactory = Record({ id: '', title: '', stl: false, ltl: false, insert_feeds: false, with_media_only: false, ignore_reblog: false, favourite: true, list: null, list_id: undefined, }); export function createAntenna(attributes: Partial) { return AntennaFactory(attributes); }