UNPKG

weverse

Version:
21 lines (20 loc) 735 B
import { WeverseCommunity, WeverseArtist, WeverseNotification, WeversePost, WeverseComment } from "../models"; import { WeverseMedia } from "../models/media"; export function toCommunity(val) { return new WeverseCommunity(val); } export function toArtist(val, community) { return new WeverseArtist(val, community); } export function toNotification(val, community, artist) { return new WeverseNotification(val, community, artist); } export function toPost(val, community, artist) { return new WeversePost(val, community, artist); } export function toComment(val, post, artist) { return new WeverseComment(val, post, artist); } export function toMedia(val, community) { return new WeverseMedia(val, community); }