chore: bump typescript 7 (#15465)
This commit is contained in:
@@ -449,7 +449,6 @@ test('readonly mode', async ({ page }) => {
|
||||
throw new Error('Cannot find editor');
|
||||
}
|
||||
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
(richTextA as any).inlineEditor.setReadonly(true);
|
||||
});
|
||||
|
||||
@@ -1044,13 +1043,11 @@ test('yText should not contain \r', async ({ page }) => {
|
||||
throw new Error('Cannot find test-rich-text');
|
||||
}
|
||||
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
const editor = (richText as any).inlineEditor as InlineEditor;
|
||||
|
||||
try {
|
||||
editor.insertText({ index: 0, length: 0 }, 'abc\r');
|
||||
} catch (e) {
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
return (e as any).message;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -159,7 +159,6 @@ test.describe('single edgeless element to linked doc', () => {
|
||||
const container = document.querySelector('affine-edgeless-root');
|
||||
return container!.service.crud.getElementsByType('group').map(s => ({
|
||||
type: s.type,
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
children: s.childElements.map((c: any) => c.type || c.flavour),
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user