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

typescript compilation errors #267

Open
akornatskyy opened this issue Sep 30, 2022 · 0 comments
Open

typescript compilation errors #267

akornatskyy opened this issue Sep 30, 2022 · 0 comments

Comments

@akornatskyy
Copy link

typescript: 4.8.4

node_modules/graphql-helix/dist/send-result/w3c.d.ts:2:62 - error TS2552: Cannot find name 'Response'. Did you mean 'TResponse'?

2 export declare function getRegularResponse<TResponse extends Response>(responseResult: HelixResponse<any, any>, Response: {
                                                               ~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:3:16 - error TS2304: Cannot find name 'BodyInit'.

3     new (body: BodyInit, responseInit: ResponseInit): TResponse;
                 ~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:3:40 - error TS2304: Cannot find name 'ResponseInit'.

3     new (body: BodyInit, responseInit: ResponseInit): TResponse;
                                         ~~~~~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:5:64 - error TS2552: Cannot find name 'Response'. Did you mean 'TResponse'?

5 export declare function getMultipartResponse<TResponse extends Response, TReadableStream extends ReadableStream>(multipartResult: MultipartResponse<any, any>, Response: {
                                                                 ~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:5:98 - error TS2552: Cannot find name 'ReadableStream'. Did you mean 'TReadableStream'?

5 export declare function getMultipartResponse<TResponse extends Response, TReadableStream extends ReadableStream>(multipartResult: MultipartResponse<any, any>, Response: {
                                                                                                   ~~~~~~~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:6:57 - error TS2304: Cannot find name 'ResponseInit'.

6     new (readableStream: TReadableStream, responseInit: ResponseInit): TResponse;
                                                          ~~~~~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:8:28 - error TS2304: Cannot find name 'UnderlyingSource'.

8     new (underlyingSource: UnderlyingSource): TReadableStream;
                             ~~~~~~~~~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:10:59 - error TS2552: Cannot find name 'Response'. Did you mean 'TResponse'?

10 export declare function getPushResponse<TResponse extends Response, TReadableStream extends ReadableStream>(pushResult: Push<any, any>, Response: {
                                                             ~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:10:93 - error TS2552: Cannot find name 'ReadableStream'. Did you mean 'TReadableStream'?

10 export declare function getPushResponse<TResponse extends Response, TReadableStream extends ReadableStream>(pushResult: Push<any, any>, Response: {
                                                                                               ~~~~~~~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:11:57 - error TS2304: Cannot find name 'ResponseInit'.

11     new (readableStream: TReadableStream, responseInit: ResponseInit): TResponse;
                                                           ~~~~~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:13:28 - error TS2304: Cannot find name 'UnderlyingSource'.

13     new (underlyingSource: UnderlyingSource): TReadableStream;
                              ~~~~~~~~~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:15:55 - error TS2304: Cannot find name 'Response'.

15 export declare function getResponse<TResponse extends Response, TReadableStream extends ReadableStream>(result: ProcessRequestResult<any, any>, Response: {
                                                         ~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:15:89 - error TS2304: Cannot find name 'ReadableStream'.

15 export declare function getResponse<TResponse extends Response, TReadableStream extends ReadableStream>(result: ProcessRequestResult<any, any>, Response: {
                                                                                           ~~~~~~~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:16:16 - error TS2304: Cannot find name 'BodyInit'.

16     new (body: BodyInit, responseInit: ResponseInit): TResponse;
                  ~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:16:40 - error TS2304: Cannot find name 'ResponseInit'.

16     new (body: BodyInit, responseInit: ResponseInit): TResponse;
                                          ~~~~~~~~~~~~

node_modules/graphql-helix/dist/send-result/w3c.d.ts:18:28 - error TS2304: Cannot find name 'UnderlyingSource'.

18     new (underlyingSource: UnderlyingSource): TReadableStream;
                              ~~~~~~~~~~~~~~~~


Found 16 errors in the same file, starting at: node_modules/graphql-helix/dist/send-result/w3c.d.ts:2

workaround: skipLibCheck in tsconfig.json.

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

No branches or pull requests

1 participant