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

Smoke test for hierarchy_generic #2797

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

Conversation

v-jiaodi
Copy link
Member

@v-jiaodi v-jiaodi commented Sep 3, 2024

tspconfig.yaml

enableOperationGroup: true
hierarchyClient: false

error log:

src/api/c/index.ts:14:17 - error TS2323: Cannot redeclare exported variable '_cOp1Send'.

14 export function _cOp1Send(
                   ~~~~~~~~~

src/api/c/index.ts:14:17 - error TS2393: Duplicate function implementation.

14 export function _cOp1Send(
                   ~~~~~~~~~

src/api/c/index.ts:27:23 - error TS2323: Cannot redeclare exported variable '_cOp1Deserialize'.

27 export async function _cOp1Deserialize(
                         ~~~~~~~~~~~~~~~~

src/api/c/index.ts:27:23 - error TS2393: Duplicate function implementation.

27 export async function _cOp1Deserialize(
                         ~~~~~~~~~~~~~~~~

src/api/c/index.ts:38:23 - error TS2323: Cannot redeclare exported variable 'cOp1'.

38 export async function cOp1(
                         ~~~~

src/api/c/index.ts:38:23 - error TS2393: Duplicate function implementation.

38 export async function cOp1(
                         ~~~~

src/api/c/index.ts:47:17 - error TS2323: Cannot redeclare exported variable '_cOp1Send'.

47 export function _cOp1Send(
                   ~~~~~~~~~

src/api/c/index.ts:47:17 - error TS2393: Duplicate function implementation.

47 export function _cOp1Send(
                   ~~~~~~~~~

src/api/c/index.ts:60:23 - error TS2323: Cannot redeclare exported variable '_cOp1Deserialize'.

60 export async function _cOp1Deserialize(
                         ~~~~~~~~~~~~~~~~

src/api/c/index.ts:60:23 - error TS2393: Duplicate function implementation.

60 export async function _cOp1Deserialize(
                         ~~~~~~~~~~~~~~~~

src/api/c/index.ts:71:23 - error TS2323: Cannot redeclare exported variable 'cOp1'.

71 export async function cOp1(
                         ~~~~

src/api/c/index.ts:71:23 - error TS2393: Duplicate function implementation.

71 export async function cOp1(
                         ~~~~

src/classic/c/index.ts:11:3 - error TS2300: Duplicate identifier 'op1'.

11   op1: (body: BEA, options?: COp1OptionalParams) => Promise<void>;
     ~~~

src/classic/c/index.ts:12:3 - error TS2300: Duplicate identifier 'op1'.

12   op1: (body: BA, options?: COp1OptionalParams) => Promise<void>;
     ~~~

src/classic/c/index.ts:12:3 - error TS2717: Subsequent property declarations must have the same type.  Property 'op1' must be of type '(body: BEA, options?: COp1OptionalParams | undefined) => Promise<void>', but here has type '(body: BA, options?: COp1OptionalParams | undefined) => Promise<void>'.

12   op1: (body: BA, options?: COp1OptionalParams) => Promise<void>;
     ~~~

  src/classic/c/index.ts:11:3
    11   op1: (body: BEA, options?: COp1OptionalParams) => Promise<void>;
         ~~~
    'op1' was also declared here.

src/classic/c/index.ts:19:5 - error TS1117: An object literal cannot have multiple properties with the same name.

19     op1: (body: BA, options?: COp1OptionalParams) =>
       ~~~

src/classic/c/index.ts:25:3 - error TS2322: Type '{ op1: (body: BA, options?: COp1OptionalParams) => Promise<void>; }' is not assignable to type 'COperations'.
  Types of property 'op1' are incompatible.
    Type '(body: BA, options?: COp1OptionalParams) => Promise<void>' is not assignable to type '(body: BEA, options?: COp1OptionalParams | undefined) => Promise<void>'.
      Types of parameters 'body' and 'body' are incompatible.
        Property 'prop2' is missing in type 'BEA' but required in type 'BA'.

25   return {
     ~~~~~~

  src/models/models.ts:15:3
    15   prop2: string;
         ~~~~~
    'prop2' is declared here.


Found 17 errors in 2 files.

Errors  Files
    12  src/api/c/index.ts:14
     5  src/classic/c/index.ts:11

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.

1 participant