mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 08:09:52 +08:00
refactor(editor): cleanup ts-expect-error (#9369)
This commit is contained in:
@@ -110,8 +110,7 @@ const compareAny = (a: unknown, b: unknown) => {
|
||||
if (!b) {
|
||||
return Compare.LT;
|
||||
}
|
||||
// @ts-expect-error FIXME: ts error
|
||||
return a - b;
|
||||
return Number(a) - Number(b);
|
||||
};
|
||||
|
||||
const compareTag = (type: DataTypeOf<typeof t.tag>, a: unknown, b: unknown) => {
|
||||
|
||||
Reference in New Issue
Block a user