/
githubmirror
/
marktext
Обзор
Документация
Войти
/
githubmirror
/
marktext
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/muya/src/block/mixins/leafQueryBlock.ts
11 строк
251 B
Ran Luo
feat(muya): migrate TS rewrite to packages/muya alongside legacy muyajs (#4314)
29 май 2026, 15:35
Не верифицирован
29 май 2026, 15:35
0d86641
Код
Авторство
О чём код?
import type { TBlockPath } from '../types'; class LeafQueryBlock { public firstChild: unknown; queryBlock(path: TBlockPath) { return path.length && path[0] === 'text' ? this.firstChild : this; } } export default LeafQueryBlock;