We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33dc34a commit 06ac1f6Copy full SHA for 06ac1f6
.changeset/swift-garlics-notice.md
@@ -0,0 +1,5 @@
1
+---
2
+"@smithy/core": patch
3
4
+
5
+set explicit return type for cbor alloc
packages/core/src/submodules/cbor/cbor-types.ts
@@ -64,7 +64,7 @@ export const extendedFloat64 = 27; // 0b11011
64
65
export const minorIndefinite = 31; // 0b11111
66
67
-export function alloc(size: number) {
+export function alloc(size: number): Uint8Array {
68
return typeof Buffer !== "undefined" ? Buffer.alloc(size) : new Uint8Array(size);
69
}
70
0 commit comments