CarbonLDP / carbonldp-js-sdk

Carbon LDP JavaScript SDK
Other
6 stars 4 forks source link

Missing ConnectionHeaders and ExtendedHeaders #165

Closed alvaro9210 closed 6 years ago

alvaro9210 commented 7 years ago

When upgrading the SDK to v1.0.0-alpha.4, when bundling the transpiler launches the following error:

ERROR in [at-loader] ./node_modules/carbonldp/Messaging/Service.d.ts:7:26 
    TS2304: Cannot find name 'ConnectionHeaders'.

ERROR in [at-loader] ./node_modules/carbonldp/Messaging/Service.d.ts:12:18 
    TS2304: Cannot find name 'ExtendedHeaders'.

It seems those types are not being imported in the d.ts file.

roddolf commented 7 years ago

The webstomp-client library has incomplete typings. And adding a workaround looks like TypeScript is removing this imported types thinking as unused imports.

A pull request has been made to the original library JSteunou/webstomp-client#54