Hierarchy

Constructors

Methods

Constructors

  • new Post(attrs?: PostFields): Post
  • Creates an instance of a model entity with an API to communicate with a resource (http RESTful resource)

    Parameters

    • Optional attrs: PostFields

      The initial attributes for the resource. Those attributes are in force to defaults()

    Returns Post

Methods

  • Returns string

  • Returns {
        content: string;
        title: string;
    }

    • content: string
    • title: string

Generated using TypeDoc