mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-25 13:51:12 +00:00
Update Taglines pt 2 (#81)
* Add Tagline structs * updated is an option<string> * Address PR Comments * Move taglines to siteres * Add Type
This commit is contained in:
parent
ab6eda43f7
commit
dbc846bb44
1 changed files with 6 additions and 1 deletions
|
@ -3,7 +3,7 @@ import { Expose, Transform, Type } from "class-transformer";
|
|||
import "reflect-metadata";
|
||||
import { toOption, toUndefined } from "../../utils";
|
||||
import { ListingType, ModlogActionType, SearchType, SortType } from "../others";
|
||||
import { Language } from "../source";
|
||||
import { Language, Tagline } from "../source";
|
||||
import {
|
||||
AdminPurgeCommentView,
|
||||
AdminPurgeCommunityView,
|
||||
|
@ -550,6 +550,11 @@ export class GetSiteResponse {
|
|||
@Type(() => Language)
|
||||
all_languages: Language[];
|
||||
discussion_languages: number[];
|
||||
@Transform(({ value }) => toOption(value), { toClassOnly: true })
|
||||
@Transform(({ value }) => toUndefined(value), { toPlainOnly: true })
|
||||
@Expose()
|
||||
@Type(() => Tagline)
|
||||
taglines: Option<Tagline[]>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue