Likable
Source: lyda-shared/src/Models/Likable.ts
Dependencies
import {TrackLike} from "./db/lyda/TrackLike.ts";
import {AlbumLike} from "./db/lyda/AlbumLike.ts";
import {PlaylistLike} from "./db/lyda/PlaylistLike.ts";
Likable
A generic interface for an entity that has an array of likes attached to it
Type: interface
export interface Likable {
likes?: (TrackLike | AlbumLike | PlaylistLike)[];
}
Properties
| Property | Type | Required | Description |
|---|---|---|---|
| likes | (TrackLike or AlbumLike or PlaylistLike)[] | No | - |