import type { RecordOf } from 'immutable'; import { Record } from 'immutable'; import type { ApiListJSON } from 'mastodon/api_types/lists'; type ListShape = Required; // no changes from server shape export type List = RecordOf; const ListFactory = Record({ id: '', title: '', exclusive: false, replies_policy: 'list', }); export function createList(attributes: Partial) { return ListFactory(attributes); }