Drop unnecessary JSDocs

This commit is contained in:
Alexander Skvortsov 2021-11-21 19:50:38 -05:00
parent 09a55258a0
commit ab2620147a
No known key found for this signature in database
GPG Key ID: C4E3BBF9C3412B4C
2 changed files with 2 additions and 8 deletions

View File

@ -71,7 +71,6 @@ export default abstract class Model {
/**
* @param data A resource object from the API.
* @param store The data store that this model should be persisted to.
* @public
*/
constructor(data: ModelData = {}, store = null) {
this.data = data;
@ -150,7 +149,6 @@ export default abstract class Model {
* Merge new attributes into this model locally.
*
* @param attributes The attributes to merge.
* @public
*/
pushAttributes(attributes: ModelAttributes) {
this.pushData({ attributes });
@ -161,7 +159,6 @@ export default abstract class Model {
*
* @param attributes The attributes to save. If a 'relationships' key
* exists, it will be extracted and relationships will also be saved.
* @public
*/
save(
attributes: SaveAttributes,
@ -337,7 +334,6 @@ export default abstract class Model {
* @return false if no information about the relationship
* exists; an array if it does, containing models if they have been
* loaded, and undefined for those that have not.
* @public
*/
static hasMany<M extends Model>(name: string): () => (M | undefined)[] | false {
return function (this: Model) {

View File

@ -223,10 +223,8 @@ export default class Store {
/**
* Create a new record of the given type.
*
* @param {String} type The resource type
* @param {Object} [data] Any data to initialize the model with
* @return {Model}
* @public
* @param type The resource type
* @param data Any data to initialize the model with
*/
createRecord<M extends Model>(type: string, data: ModelData = {}): M {
data.type = data.type || type;