Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align the client type shape from TCGC in our emitter #6179

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
introduce the client type
  • Loading branch information
ArcturusZhang committed Feb 27, 2025
commit 48290faebd08886701b320da9ba432997a53db06
19 changes: 0 additions & 19 deletions packages/http-client-csharp/emitter/src/type/input-client.ts

This file was deleted.

22 changes: 20 additions & 2 deletions packages/http-client-csharp/emitter/src/type/input-type.ts
Original file line number Diff line number Diff line change
@@ -9,13 +9,31 @@ import {
UsageFlags,
} from "@azure-tools/typespec-client-generator-core";
import { DateTimeKnownEncoding, DurationKnownEncoding } from "@typespec/compiler";
import { InputOperation } from "./input-operation.js";

interface InputTypeBase {
export interface InputClientType extends DecoratedType {
kind: "client";
name: string;
namespace: string;
doc?: string;
summary?: string;
// clientInitialization: TODO;
operations: InputOperation[];
apiVersions: string[];
crossLanguageDefinitionId: string;
parent?: InputClientType;
children?: InputClientType[];
}

interface DecoratedType {
decorators?: DecoratorInfo[];
}

interface InputTypeBase extends DecoratedType {
kind: string;
summary?: string;
doc?: string;
deprecation?: string;
decorators?: DecoratorInfo[];
}

export type InputType =
Loading
Oops, something went wrong.