improve(anyware): add concept of overloads #1705
Annotations
10 errors
Run pnpm build:
src/client/gql/gql.ts#L76
Argument of type '[{ name: "encode"; input: InitialInput; output: StepInputBase & { request: RequestAnalyzedInput; }; slots: undefined; }, { name: "pack"; input: StepInputBase & { request: RequestAnalyzedInput; }; output: object; slots: undefined; }, { name: "exchange"; input: object; output: object; slots: undefined; }, { name: "unpack"; input: object; output: object; slots: undefined; }, { name: "decode"; input: StepInputBase & { result: FormattedExecutionResult<ObjMap<unknown>, ObjMap<unknown>>; }; output: FormattedExecutionResult<ObjMap<unknown>, ObjMap<unknown>>; slots: undefined; }]' is not assignable to parameter of type 'ExecutablePipeline'.
|
Run pnpm build:
src/client/gql/gql.ts#L82
Argument of type 'import("/home/runner/work/graffle/graffle/src/lib/anyware/Pipeline/Result", { with: { "resolution-mode": "import" } }).Result' is not assignable to parameter of type 'import("/home/runner/work/graffle/graffle/src/requestPipeline/RequestPipeline", { with: { "resolution-mode": "import" } }).requestPipeline.Result'.
|
Run pnpm build:
src/documentBuilder/requestMethods/requestMethods.ts#L140
Argument of type '[{ name: "encode"; input: InitialInput; output: StepInputBase & { request: RequestAnalyzedInput; }; slots: undefined; }, { name: "pack"; input: StepInputBase & { request: RequestAnalyzedInput; }; output: object; slots: undefined; }, { name: "exchange"; input: object; output: object; slots: undefined; }, { name: "unpack"; input: object; output: object; slots: undefined; }, { name: "decode"; input: StepInputBase & { result: FormattedExecutionResult<ObjMap<unknown>, ObjMap<unknown>>; }; output: FormattedExecutionResult<ObjMap<unknown>, ObjMap<unknown>>; slots: undefined; }]' is not assignable to parameter of type 'ExecutablePipeline'.
|
Run pnpm build:
src/documentBuilder/requestMethods/requestMethods.ts#L146
Argument of type 'import("/home/runner/work/graffle/graffle/src/lib/anyware/Pipeline/Result", { with: { "resolution-mode": "import" } }).Result' is not assignable to parameter of type 'import("/home/runner/work/graffle/graffle/src/requestPipeline/RequestPipeline", { with: { "resolution-mode": "import" } }).requestPipeline.Result'.
|
Run pnpm build:
src/extensions/Upload/Upload.ts#L14
Property 'transportType' does not exist on type 'StepInputBase & { request: RequestAnalyzedInput; }'.
|
Run pnpm build:
src/extensions/Upload/Upload.ts#L29
Property 'transportType' does not exist on type 'StepInputBase & { request: RequestAnalyzedInput; }'.
|
Run pnpm build:
src/extensions/Upload/Upload.ts#L41
Object literal may only specify known properties, and 'headers' does not exist in type 'StepInputBase & { request: RequestAnalyzedInput; }'.
|
Run pnpm build:
src/lib/anyware/Pipeline/builder.ts#L191
Type '"name"' cannot be used to index type 'PreviousItem<$RootContext["steps"], { name: $Name; }>'.
|
Run pnpm build:
src/lib/anyware/Pipeline/builder.ts#L192
Type 'PreviousItem<$RootContext["steps"], { name: $Name; }>["name"]' cannot be used to index type '$Context["steps"]'.
|
Run pnpm build:
src/lib/anyware/Pipeline/builder.ts#L192
Type '"output"' cannot be used to index type '$Context["steps"][PreviousItem<$RootContext["steps"], { name: $Name; }>["name"]]'.
|
Loading