main
SiRanWeb 2022-11-20 14:44:30 +03:00
rodzic cce45abe70
commit 8054849fcf
3 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -146,8 +146,6 @@ export interface ActorFields extends APObjectFields {
*/
streams?: StreamsValue | StreamsValue[];
// TODO preferredUsername or preferredUsernameMap at one time
/**
* A short username which may be used to refer to the actor, with no uniqueness guarantees.
* [For multiple language-tagged values use preferredUsernameMap property]

Wyświetl plik

@ -25,7 +25,7 @@ export class APBase<T extends WithContext> {
}
protected parseValue(value: any): any {
return value instanceof APBase ? value.toPlain() : value.toValue();
return value instanceof APBase ? value.toPlain() : value.valueOf();
}
public toPlain(): Record<string, any> {

Wyświetl plik

@ -3,7 +3,6 @@ import {AnyOfValue, ClosedValue, OneOfValue} from "../../common/types";
export interface QuestionFields extends IntransitiveActivityFields {
// TODO: only oneOf or anyOf at one time
/**
* Identifies an exclusive option for a Question.
* Use of oneOf implies that the Question can have only a single answer.