kopia lustrzana https://github.com/activitypub-js/activitypub-models
minor fixes
rodzic
cce45abe70
commit
8054849fcf
|
@ -146,8 +146,6 @@ export interface ActorFields extends APObjectFields {
|
||||||
*/
|
*/
|
||||||
streams?: StreamsValue | StreamsValue[];
|
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.
|
* A short username which may be used to refer to the actor, with no uniqueness guarantees.
|
||||||
* [For multiple language-tagged values use preferredUsernameMap property]
|
* [For multiple language-tagged values use preferredUsernameMap property]
|
||||||
|
|
|
@ -25,7 +25,7 @@ export class APBase<T extends WithContext> {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected parseValue(value: any): any {
|
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> {
|
public toPlain(): Record<string, any> {
|
||||||
|
|
|
@ -3,7 +3,6 @@ import {AnyOfValue, ClosedValue, OneOfValue} from "../../common/types";
|
||||||
|
|
||||||
export interface QuestionFields extends IntransitiveActivityFields {
|
export interface QuestionFields extends IntransitiveActivityFields {
|
||||||
|
|
||||||
// TODO: only oneOf or anyOf at one time
|
|
||||||
/**
|
/**
|
||||||
* Identifies an exclusive option for a Question.
|
* Identifies an exclusive option for a Question.
|
||||||
* Use of oneOf implies that the Question can have only a single answer.
|
* Use of oneOf implies that the Question can have only a single answer.
|
||||||
|
|
Ładowanie…
Reference in New Issue