user vor 6 Jahren
Ursprung
Commit
31ec489f39

+ 1 - 0
lib/content-item.d.ts

@@ -10,6 +10,7 @@ export declare class ContentItem {
     readonly userLinks: ContentLink[];
     readonly systemLinks: ContentLink[];
     readonly repliable: boolean;
+    readonly creator?: string;
     readonly title?: string;
     readonly text?: string;
     readonly price?: number;

+ 1 - 0
lib/content-item.js

@@ -7,6 +7,7 @@ class ContentItem {
         this.type = props.type;
         this.title = props.title;
         this.text = props.text;
+        this.creator = props.creator;
         if (props.date) {
             this.date = new Date(props.date);
         }

Datei-Diff unterdrückt, da er zu groß ist
+ 1 - 1
lib/content-item.js.map


+ 1 - 0
lib/content-params.d.ts

@@ -2,6 +2,7 @@ import { ContentLink } from "./content-link";
 export interface ContentParams {
     type: string;
     date?: string;
+    creator?: string;
     links?: ContentLink[];
     myTags?: string[];
     price?: number;

+ 2 - 0
src/content-item.ts

@@ -14,6 +14,7 @@ export class ContentItem {
   public readonly systemLinks: ContentLink[];
   public readonly repliable: boolean;
 
+  public readonly creator?: string;
   public readonly title?: string;
   public readonly text?: string;
   public readonly price?: number;
@@ -31,6 +32,7 @@ export class ContentItem {
     this.type = props.type;
     this.title = props.title;
     this.text = props.text;
+    this.creator = props.creator;
 
     if (props.date) {
       this.date = new Date(props.date);

+ 1 - 0
src/content-params.ts

@@ -3,6 +3,7 @@ import { ContentLink } from "./content-link";
 export interface ContentParams {
     type: string;
     date?: string;
+    creator?: string;
     links?: ContentLink[];
     myTags?: string[];
     price?: number;