Skip to content

Instantly share code, notes, and snippets.

@jeremymeng
Created June 5, 2025 17:06
Show Gist options
  • Save jeremymeng/5cb385d849b7c9c658a7878d89d9f13a to your computer and use it in GitHub Desktop.
Save jeremymeng/5cb385d849b7c9c658a7878d89d9f13a to your computer and use it in GitHub Desktop.
Typespec Patched #js
if (additionalEmitterOptions) {
additionalEmitterOptions.split(";").forEach((option) => {
const [key, value] = option.split("=");
if (key && value) {
if (value.startsWith("{") && value.endsWith("}")) {
console.log(`##### '${key}': '${value}'`)
emitterOverrideOptions[key] = JSON.parse(value);
} else {
emitterOverrideOptions[key] = value;
}
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment