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

Patch Basic Detection for RLC #9209

Merged
merged 19 commits into from
Oct 29, 2024
Merged
12 changes: 6 additions & 6 deletions tools/js-sdk-release-tools/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tools/js-sdk-release-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure-tools/js-sdk-release-tools",
"version": "2.7.14",
"version": "2.7.15",
"description": "",
"files": [
"dist"
Expand Down Expand Up @@ -41,7 +41,7 @@
"simple-git": "^3.5.0",
"ts-morph": "^23.0.0",
"tslib": "^1.9.3",
"typescript-codegen-breaking-change-detector": "0.4.11",
"typescript-codegen-breaking-change-detector": "0.5.4",
"unixify": "^1.0.0",
"winston": "^3.13.1",
"yaml": "^1.10.2"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# patch

``` ts
export interface ClustersGet {
a: number;
}

export interface Routes {
(path: "basic", subscriptionId: string, resourceGroupName: string, clusterName: string): ClustersGet;
(path: "remove", subscriptionId: string, resourceGroupName: string, clusterName: string): ClustersGet;
(path: "change_return_type", subscriptionId: string, resourceGroupName: string, clusterName: string): ClustersGet;
(path: "change_para_count", subscriptionId: string, resourceGroupName: string, clusterName: string): ClustersGet;
(path: "change_para_type", subscriptionId: string, resourceGroupName: string, clusterName: string): ClustersGet;
}

export type typesChange = "basic" | "remove";
export type typesRemove = "basic" | "remove";

export interface A {a: string;}
export interface B {b: string;}
export interface C {c: string;}
export interface D {d: string;}
export function isUnexpected(response: A | B): response is A;
export function isUnexpected(response: C | D): response is A;

export function funcBasic(a: string): string
export function funcReturnType(a: string): string
export function funcParameterCount(a: string, b: string): string
export function funcParameterType(a: string): string
export function funcRemove(a: string): string
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# patch

``` ts
export interface ClustersGet {
a: string;
}

export interface ClusterGetOld {
a: number;
}

export interface Routes {
(path: "basic", subscriptionId: string, resourceGroupName: string, clusterName: string): ClusterGetOld;
(path: "add", subscriptionId: string, resourceGroupName: string, clusterName: string): ClusterGetOld;
(path: "change_return_type", subscriptionId: string, resourceGroupName: string, clusterName: string): ClustersGet;
(path: "change_para_count", subscriptionId: string, resourceGroupName: string): ClusterGetOld;
(path: "change_para_type", subscriptionId: string, resourceGroupName: string, clusterName: number): ClusterGetOld;
}

export type typesChange = "basic" | "rEmove";
export type typesAdd = "basic" | "rEmove";

export interface A {a: string;}
export interface B {b: string;}
export interface C {c: string;}
export interface D {d: string;}
export function isUnexpected(response: A | B): response is A;
export function isUnexpected(response: C | E): response is C;

export function funcBasic(a: string): string
export function funcReturnType(a: string): number
export function funcParameterCount(a: string, b: string, c: string): string
export function funcParameterType(a: number): string
export function funcAdd(a: string): string
```
Loading