import type { RecordOf } from 'immutable'; import { Record } from 'immutable'; import type { ApiBookmarkCategoryJSON } from 'mastodon/api_types/bookmark_categories'; type BookmarkCategoryShape = Required; // no changes from server shape export type BookmarkCategory = RecordOf; const BookmarkCategoryFactory = Record({ id: '', title: '', }); export function createBookmarkCategory( attributes: Partial, ) { return BookmarkCategoryFactory(attributes); }