checkProfile
import { PROFILE_KEYS } from "#codebase/tcmts/core/program"; import type { CheckProfile, CompilerOptions } from "#codebase/tcmts/core/program"; export function checkProfile(options: CompilerOptions): CheckProfile { const out: CheckProfile = {}; for (const k of PROFILE_KEYS) if (options[k] !== undefined) out[k] = options[k]; return out; }