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

Function isArtifactType

src/artifacts/store.ts:61–63  ·  view source on GitHub ↗
(t: string)

Source from the content-addressed store, hash-verified

59const VALID_TYPES: readonly ArtifactType[] = ['html', 'react', 'svg', 'markdown', 'vue', 'text'];
60
61export function isArtifactType(t: string): t is ArtifactType {
62 return (VALID_TYPES as readonly string[]).includes(t);
63}
64
65/** The file extension a given artifact type renders to. */
66export function extensionForType(type: ArtifactType): string {

Callers 2

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected