MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / extensionForType

Function extensionForType

src/artifacts/store.ts:66–75  ·  view source on GitHub ↗
(type: ArtifactType)

Source from the content-addressed store, hash-verified

64
65/** The file extension a given artifact type renders to. */
66export function extensionForType(type: ArtifactType): string {
67 switch (type) {
68 case 'html': return 'html';
69 case 'react': return 'jsx';
70 case 'svg': return 'svg';
71 case 'markdown': return 'md';
72 case 'vue': return 'vue';
73 case 'text': return 'txt';
74 }
75}
76
77/** The canonical entry filename inside a version folder for a type. */
78export function entryFileName(type: ArtifactType): string {

Callers 2

entryFileNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected