Skip to content

Instantly share code, notes, and snippets.

@JameelB
Created October 26, 2017 14:31
Show Gist options
  • Save JameelB/bca467389fd1b58ea027b36b625e9793 to your computer and use it in GitHub Desktop.
Save JameelB/bca467389fd1b58ea027b36b625e9793 to your computer and use it in GitHub Desktop.
This was the first one:
TSError: ⨯ Unable to compile TypeScript
src/modules/index.ts (33,17): Argument of type 'Bluebird<void | Db>' is not assignable to parameter of type 'Bluebird<Db>'.
Type 'void | Db' is not assignable to type 'Db'.
Type 'void' is not assignable to type 'Db'. (2345)
at getOutput (/home/jbriones/raincatcher/raincatcher-angularjs/core/node_modules/ts-node/src/index.ts:307:15)
at /home/jbriones/raincatcher/raincatcher-angularjs/core/node_modules/ts-node/src/index.ts:336:16
at Object.compile (/home/jbriones/raincatcher/raincatcher-angularjs/core/node_modules/ts-node/src/index.ts:498:11)
at Module.m._compile (/home/jbriones/raincatcher/raincatcher-angularjs/core/node_modules/ts-node/src/index.ts:392:43)
at Module._extensions..js (module.js:579:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/jbriones/raincatcher/raincatcher-angularjs/core/node_modules/ts-node/src/index.ts:395:12)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
These are the rest:
TSError: ⨯ Unable to compile TypeScript
../../cloud/wfm-rest-api/src/impl/ApiController.ts (163,37): Argument of type '(req: Request<any, any, any, any>) => Bluebird<PageResponse<T>>' is not assignable to parameter of type '(this: this, req: Request<any, any, any, any>) => Bluebird<T | T[] | undefined>'.
Type 'Bluebird<PageResponse<T>>' is not assignable to type 'Bluebird<T | T[] | undefined>'.
Type 'PageResponse<T>' is not assignable to type 'T | T[] | undefined'.
Type 'PageResponse<T>' is not assignable to type 'T[]'.
Property 'length' is missing in type 'PageResponse<T>'. (2345)
../../cloud/wfm-rest-api/src/impl/ApiController.ts (164,38): Argument of type '(req: Request<any, any, any, any>) => Bluebird<T | null>' is not assignable to parameter of type '(this: this, req: Request<any, any, any, any>) => Bluebird<T | T[] | undefined>'.
Type 'Bluebird<T | null>' is not assignable to type 'Bluebird<T | T[] | undefined>'.
Type 'T | null' is not assignable to type 'T | T[] | undefined'.
Type 'null' is not assignable to type 'T | T[] | undefined'. (2345)
../../cloud/wfm-rest-api/src/impl/ApiController.ts (166,37): Argument of type '(req: Request<any, any, any, any>) => Bluebird<PageResponse<T>>' is not assignable to parameter of type '(this: this, req: Request<any, any, any, any>) => Bluebird<T | T[] | undefined>'.
Type 'Bluebird<PageResponse<T>>' is not assignable to type 'Bluebird<T | T[] | undefined>'. (2345)
../../cloud/wfm-rest-api/src/impl/ApiController.ts (168,37): Argument of type '(req: Request<any, any, any, any>) => Bluebird<T | null>' is not assignable to parameter of type '(this: this, req: Request<any, any, any, any>) => Bluebird<T | T[] | undefined>'.
Type 'Bluebird<T | null>' is not assignable to type 'Bluebird<T | T[] | undefined>'. (2345)
../../cloud/wfm-rest-api/src/impl/ApiController.ts (170,37): Argument of type '(req: Request<any, any, any, any>) => Bluebird<T | null>' is not assignable to parameter of type '(this: this, req: Request<any, any, any, any>) => Bluebird<T | T[] | undefined>'.
Type 'Bluebird<T | null>' is not assignable to type 'Bluebird<T | T[] | undefined>'. (2345)
at getOutput (/home/jbriones/raincatcher/raincatcher-angularjs/core/node_modules/ts-node/src/index.ts:307:15)
at /home/jbriones/raincatcher/raincatcher-angularjs/core/node_modules/ts-node/src/index.ts:336:16
at Object.compile (/home/jbriones/raincatcher/raincatcher-angularjs/core/node_modules/ts-node/src/index.ts:498:11)
at Module.m._compile (/home/jbriones/raincatcher/raincatcher-angularjs/core/node_modules/ts-node/src/index.ts:392:43)
at Module._extensions..js (module.js:579:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/jbriones/raincatcher/raincatcher-angularjs/core/node_modules/ts-node/src/index.ts:395:12)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/jbriones/raincatcher/raincatcher-angularjs/core/cloud/wfm-rest-api/src/WfmRestApi.ts:9:1)
at Module._compile (module.js:570:32)
at Module.m._compile (/home/jbriones/raincatcher/raincatcher-angularjs/core/node_modules/ts-node/src/index.ts:392:23)
at Module._extensions..js (module.js:579:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/jbriones/raincatcher/raincatcher-angularjs/core/node_modules/ts-node/src/index.ts:395:12)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/jbriones/raincatcher/raincatcher-angularjs/core/cloud/wfm-rest-api/src/index.ts:2:1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment