An experimental TypeSpec syntax for Lexicon
56
fork

Configure Feed

Select the types of activity you want to include in your feed.

wip

+7 -1
+7 -1
typelex-emitter/src/emitter.ts
··· 406 406 return null; 407 407 } 408 408 409 - // Convert namespace to lexicon ID format (e.g., "xyz.statusphere" -> "xyz.statusphere.modelName") 409 + // If the model is named "Main", the lexicon ID is just the namespace 410 + // Otherwise, append the lowercased model name 411 + if (model.name === "Main") { 412 + return namespaceName; 413 + } 414 + 415 + // Convert namespace to lexicon ID format (e.g., "xyz.statusosphere" -> "xyz.statusosphere.modelName") 410 416 return `${namespaceName}.${model.name.charAt(0).toLowerCase() + model.name.slice(1)}`; 411 417 } 412 418