mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-15 04:50:26 +01:00
14 lines
343 B
TypeScript
14 lines
343 B
TypeScript
import type { BlockType } from '../adf/block-directives.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)
|
|
}
|