import type { RecordOf } from 'immutable'; import { Record } from 'immutable'; import type { ApiCircleJSON } from 'mastodon/api_types/circles'; type CircleShape = Required; // no changes from server shape export type Circle = RecordOf; const CircleFactory = Record({ id: '', title: '', }); export function createCircle(attributes: Partial) { return CircleFactory(attributes); }