Files
adf-codec/src/markdown/block-directive-arguments.ts
T
lilleman c2acee7a1d
CI / gate (push) Successful in 29s
CI / publish (push) Has been skipped
21 - the ADF tables carry ADF's nouns
2026-09-21 21:39:59 +02:00

14 lines
338 B
TypeScript

import type { BlockType } from '../adf/block-nodes.ts'
const argumentByType = new Map(
Object.entries({
blockTaskItem: 'state',
panel: 'panelType',
taskItem: 'state',
} satisfies Partial<Record<BlockType, string>>),
)
export function blockArgument(type: string): string | undefined {
return argumentByType.get(type)
}