Hierarchy

Index

Properties

data

data: ISchema

schemaVersion

schemaVersion: number = 1

Methods

fromJSON

load

  • load(): Promise<void>

migrate

  • migrate(version: number): void
  • Nodes that have evolved from schema version 1 should override this method. This function is responsible for changing this.data to match the current schema.

    Parameters

    • version: number

      The old version number

    Returns void

save

  • save(): Promise<void>

toJSON