From c012c9b46c2e0b06eaadb6b19747578cd99a469e Mon Sep 17 00:00:00 2001 From: "Jiao Di (MSFT)" <80496810+v-jiaodi@users.noreply.github.com> Date: Tue, 8 Oct 2024 14:43:43 +0800 Subject: [PATCH] fix nightly ci --- packages/typespec-ts/src/modular/buildCodeModel.ts | 2 +- packages/typespec-ts/src/modular/emitSamples.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/typespec-ts/src/modular/buildCodeModel.ts b/packages/typespec-ts/src/modular/buildCodeModel.ts index 9582687c87..f00fb055b9 100644 --- a/packages/typespec-ts/src/modular/buildCodeModel.ts +++ b/packages/typespec-ts/src/modular/buildCodeModel.ts @@ -1454,7 +1454,7 @@ function emitUnion( return { name: typeName, nullable: isNull, - description: sdkType.description || `Type of ${typeName}`, + description: sdkType.doc || `Type of ${typeName}`, internal: true, type: sdkType.kind, valueType: emitSimpleType(sdkType.valueType), diff --git a/packages/typespec-ts/src/modular/emitSamples.ts b/packages/typespec-ts/src/modular/emitSamples.ts index 40011f3e27..aa6c49e1c7 100644 --- a/packages/typespec-ts/src/modular/emitSamples.ts +++ b/packages/typespec-ts/src/modular/emitSamples.ts @@ -212,7 +212,7 @@ function emitMethodSamples( } // Create a function declaration structure - const description = method.description ?? `execute ${method.name}`; + const description = method.doc ?? `execute ${method.name}`; const normalizedDescription = description.charAt(0).toLowerCase() + description.slice(1); const functionDeclaration: FunctionDeclarationStructure = {