mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 12:06:35 +08:00
9321ce94a7
Closes: [BS-2554](https://linear.app/affine-design/issue/BS-2554/remove-global-types-in-block-config)
20 lines
526 B
TypeScript
20 lines
526 B
TypeScript
import type { NoteBlockModel } from '@blocksuite/affine-model';
|
|
import {
|
|
type BlockStdScope,
|
|
ConfigExtensionFactory,
|
|
} from '@blocksuite/block-std';
|
|
import type { TemplateResult } from 'lit';
|
|
|
|
type NoteBlockContext = {
|
|
note: NoteBlockModel;
|
|
std: BlockStdScope;
|
|
};
|
|
|
|
export type NoteConfig = {
|
|
edgelessNoteHeader: (context: NoteBlockContext) => TemplateResult;
|
|
pageBlockTitle: (context: NoteBlockContext) => TemplateResult;
|
|
};
|
|
|
|
export const NoteConfigExtension =
|
|
ConfigExtensionFactory<NoteConfig>('affine:note');
|