mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-20 15:15:44 +01:00
Answer the architecture review: emit-only spellings move down, and the tables drop markdown's words
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import type { BlockType } from '../adf/block-directives.ts'
|
||||
|
||||
const blockArguments: Readonly<Record<string, string>> = {
|
||||
blockTaskItem: 'state',
|
||||
panel: 'panelType',
|
||||
taskItem: 'state',
|
||||
} satisfies Partial<Record<BlockType, string>>
|
||||
|
||||
export function blockArgument(type: string): string | undefined {
|
||||
return blockArguments[type]
|
||||
}
|
||||
Reference in New Issue
Block a user