UNPKG

weverse

Version:
10 lines (9 loc) 839 B
import { WeverseCommunity, WeverseArtist, WeverseNotification, WeversePost, WeverseComment } from "../models"; import { WeverseMedia } from "../models/media"; import { Community, Artist, Notification, Post, Comment, Media } from "../types"; export declare function toCommunity(val: Community): WeverseCommunity; export declare function toArtist(val: Artist, community: WeverseCommunity): WeverseArtist; export declare function toNotification(val: Notification, community: WeverseCommunity, artist?: WeverseArtist): WeverseNotification; export declare function toPost(val: Post, community: WeverseCommunity, artist: WeverseArtist): WeversePost; export declare function toComment(val: Comment, post: WeversePost, artist: WeverseArtist): WeverseComment; export declare function toMedia(val: Media, community: WeverseCommunity): WeverseMedia;