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

Binder models tcgc #2759

Draft
wants to merge 57 commits into
base: main
Choose a base branch
from
Draft

Binder models tcgc #2759

wants to merge 57 commits into from

Conversation

joheredi
Copy link
Member

No description provided.

@@ -248,8 +249,8 @@ export async function $onEmit(context: EmitContext) {

const isMultiClients = modularCodeModel.clients.length > 1;

emitTypes(dpgContext.sdkPackage, { sourceRoot: modularSourcesRoot });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feel like this change is moving the models outside of the subclients folder already? #2556 should I still wait for this pr to be merged ?

@qiaozha qiaozha self-assigned this Aug 28, 2024
import { NetworkAnalyticsContext as Client } from "../index.js";
import {
StreamableMethod,
operationOptionsToRequestParameters,
PathUncheckedResponse,
createRestError,
} from "@azure-rest/core-client";
import {
_DataProductListResult,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to check why we didn't remove those unused imports?

packages/typespec-ts/src/modular/emit-models.ts Outdated Show resolved Hide resolved
AccountSas,
AccountSasToken,
KeyVaultInfo,
RoleAssignmentCommonProperties,
RoleAssignmentDetail,
ListRoleAssignments,
_DataProductListResult,
_DataTypeListResult,
_DataProductsCatalogListResult,
_OperationListResult,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still need to investigate why this is imported however not being used.

packages/typespec-ts/src/index.ts Outdated Show resolved Hide resolved
@@ -5,6 +5,7 @@
```ts

import { ClientOptions } from '@azure-rest/core-client';
import { ErrorModel } from '@azure-rest/core-client';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should also import ErrorModel from binder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants