Update def.ts

This commit is contained in:
syuilo 2025-05-31 12:50:30 +09:00
parent 5d93bf527c
commit 8090429e9a
1 changed files with 5 additions and 0 deletions

View File

@ -374,6 +374,11 @@ export const PREF_DEF = {
watermarkPresets: {
accountDependent: true,
default: [] as WatermarkPreset[],
mergeStrategy: (a, b) => {
const sameIdExists = a.some(x => b.some(y => x.id === y.id));
if (sameIdExists) throw new Error();
return a.concat(b);
},
},
defaultWatermarkPresetId: {
accountDependent: true,