Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const setCustomFavoritePropertiesManager = () => {
const storage: IFavoritePropertiesStorage = {
loadProperties: async (_?: string, __?: string) => ({
nestedContentInfos: new Set(),
propertyInfos: new Set(),
baseFieldInfos: new Set(),
}),
async saveProperties(_: FavoriteProperties, __?: string, ___?: string) { },
};
Presentation.favoriteProperties = new FavoritePropertiesManager({ storage });
};
const setCustomFavoritePropertiesManager = () => {
const storage: IFavoritePropertiesStorage = {
loadProperties: async (_projectId?: string, _imodelId?: string) => ({
nestedContentInfos: new Set(),
propertyInfos: new Set(),
baseFieldInfos: new Set(),
}),
async saveProperties(_properties: FavoriteProperties, _projectId?: string, _imodelId?: string) { },
};
PresentationFrontend.favoriteProperties = new FavoritePropertiesManager({ storage });
};