applyHubSettingsMigrations

Function

Apply migrations for Hub Settings

Parameters

Parameter Type Default Notes
settings Required IUserHubSettings

Returns

Property Type Notes
schemaVersion number
features Optional {
workspace:
boolean
}

Allow features to be opted in or out of

history Optional IHubHistory

Optional history of sites/content the user has visited

notices Optional {
dismissed:
string[]
}

Track notices the user has dismissed stored as an object so we can add more types in the future

updated Optional number
username Optional string

Function defined in common/src/utils/internal/siteSettingsMigrations.ts:25