Open CarstenLeue opened 3 years ago
In the example https://www.npmjs.com/package/@ibm-cloud/ibm-key-protect the type of body is an object:
body
const body = { metadata: { collectionType: 'application/vnd.ibm.kms.key+json', collectionTotal: 1, }, resources: [ { type: 'application/vnd.ibm.kms.key+json', name: 'nodejsKey', extractable: false, }, ], };
But the TS type for the payload (https://github.com/IBM/keyprotect-nodejs-client/blob/master/ibm-key-protect-api/v2.ts#L2447) says:
NodeJS.ReadableStream|Buffer
This does not match and it makes it hard to use the API in TS.
Thanks for pointing out the issue, we will provide a fix in the future release.
In the example https://www.npmjs.com/package/@ibm-cloud/ibm-key-protect the type of
body
is an object:But the TS type for the payload (https://github.com/IBM/keyprotect-nodejs-client/blob/master/ibm-key-protect-api/v2.ts#L2447) says:
This does not match and it makes it hard to use the API in TS.