Home Reference Source Repository
import ApiProjectCollection from 'schema-mapper-api/lib/apiProjectCollection.js'
public class | source

ApiProjectCollection

Extends:

schema-mapper-project-collection~ProjectCollection → ApiProjectCollection

ProjectCollection with save method bolted on

Constructor Summary

Public Constructor
public

constructor(allProjects: Object, differ: Differ, store: Store)

Create a new ApiProjectCollection instance.

Member Summary

Protected Members
protected

Store instance

Method Summary

Public Methods
public

Save the staging changes

Public Constructors

public constructor(allProjects: Object, differ: Differ, store: Store) source

Create a new ApiProjectCollection instance.

Params:

NameTypeAttributeDescription
allProjects Object

An object containing all projects

differ Differ

schema-mapper-differ instance

store Store

A store object

Protected Members

protected store: Store source

Store instance

Public Methods

public save(): Promise source

Save the staging changes

Return:

Promise