fix(component): toast too many times when switch page mode (#2296)

This commit is contained in:
Himself65
2023-05-10 13:50:51 +08:00
committed by himself65
parent 4c230843ed
commit b4981abe4f
5 changed files with 68 additions and 5 deletions

View File

@@ -47,3 +47,15 @@ export function useOnTransformWorkspace() {
[setUser, transformWorkspace]
);
}
declare global {
// global Events
interface WindowEventMap {
'affine-workspace:transform': CustomEvent<{
from: WorkspaceFlavour;
to: WorkspaceFlavour;
oldId: string;
newId: string;
}>;
}
}