Skip to content

Commit

Permalink
fix(stdlib): Annotate generic types in Buffer (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Sep 7, 2021
1 parent 15416b3 commit ad46b9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/buffer.gr
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ export let toStringSlice = (start, length, buffer) => {
* @since v0.4.0
*/
@disableGC
export let rec addChar = (char, buffer) => {
export let rec addChar = (char: Char, buffer: Buffer) => {
let n = getCharAsWasmI32(char)
let bytelen = getCharByteLength(n)
match (bytelen) {
Expand Down Expand Up @@ -713,7 +713,7 @@ export let rec addStringSlice = (start, length, string, buffer) => {
* @since v0.4.0
*/
@disableGC
export let rec addBytesSlice = (start, length, bytes, buffer) => {
export let rec addBytesSlice = (start: Number, length: Number, bytes: Bytes, buffer: Buffer) => {
Memory.incRef(WasmI32.fromGrain(autogrow))
Memory.incRef(WasmI32.fromGrain(length))
Memory.incRef(WasmI32.fromGrain(buffer))
Expand Down

0 comments on commit ad46b9e

Please sign in to comment.