mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
refactor(editor): cleanup ts-expect-error (#9369)
This commit is contained in:
@@ -38,12 +38,12 @@ export const devtoolsFormatter: typeof window.devtoolsFormatters = [
|
||||
if ('flavour' in (obj as BlockModel) && 'yBlock' in (obj as BlockModel)) {
|
||||
globalUtils.assertType<BlockModel>(obj);
|
||||
|
||||
// @ts-expect-error FIXME: ts error
|
||||
// @ts-expect-error ignore
|
||||
const { props } = obj.page._blockTree.getBlock(obj.id)._parseYBlock();
|
||||
|
||||
const propsArr = Object.entries(props).flatMap(([key]) => {
|
||||
return [
|
||||
// @ts-expect-error FIXME: ts error
|
||||
// @ts-expect-error ignore
|
||||
...toStyledEntry(key, obj[key]),
|
||||
['div', {}, ''],
|
||||
] as HTMLTemplate[];
|
||||
|
||||
Reference in New Issue
Block a user