(t: string)
| 59 | const VALID_TYPES: readonly ArtifactType[] = ['html', 'react', 'svg', 'markdown', 'vue', 'text']; |
| 60 | |
| 61 | export 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. */ |
| 66 | export function extensionForType(type: ArtifactType): string { |
no outgoing calls
no test coverage detected