mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
14 lines
364 B
TypeScript
14 lines
364 B
TypeScript
import { type ListBlockModel, ListBlockSchema } from '@blocksuite/affine-model';
|
|
|
|
import { createBlockMeta } from './base.js';
|
|
|
|
export const todoMeta = createBlockMeta<ListBlockModel>({
|
|
selector: block => {
|
|
if (block.flavour !== ListBlockSchema.model.flavour) {
|
|
return false;
|
|
}
|
|
|
|
return (block.model as ListBlockModel).type === 'todo';
|
|
},
|
|
});
|