Function migrateUsernotesToLatestSchema

  • Checks the schema version of raw usernotes data and attempts to update it to the latest known schema version if it's out of date. Throws an error if the data's current schema version is too old or new to handle.

    Parameters

    • data: any

      The usernotes data object read from the wiki, as an object (i.e. you should parse the page contents as JSON to pass into this function)

    Returns RawUsernotes

    Data object updated to latest schema version

Generated using TypeDoc