From 550fee9c81c3d08e52aab3057fd8c8d0fb65e06e Mon Sep 17 00:00:00 2001 From: Peter Date: Sat, 9 Mar 2024 13:14:13 +0100 Subject: [PATCH] format --- src/plinth/javascript/compression_stream.gleam | 2 +- src/plinth/javascript/decompression_stream.gleam | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plinth/javascript/compression_stream.gleam b/src/plinth/javascript/compression_stream.gleam index d559e4b..c17eba4 100644 --- a/src/plinth/javascript/compression_stream.gleam +++ b/src/plinth/javascript/compression_stream.gleam @@ -1,6 +1,6 @@ import gleam/javascript/promise.{type Promise} -/// For encoding, pass "gzip" or "deflate" @target(javascript) +/// For encoding, pass "gzip" or "deflate" @external(javascript, "../../compression_stream_ffi.mjs", "compress") pub fn compress(data: BitArray, encoding: String) -> Promise(BitArray) diff --git a/src/plinth/javascript/decompression_stream.gleam b/src/plinth/javascript/decompression_stream.gleam index c0f95f6..4c2f122 100644 --- a/src/plinth/javascript/decompression_stream.gleam +++ b/src/plinth/javascript/decompression_stream.gleam @@ -1,6 +1,6 @@ import gleam/javascript/promise.{type Promise} -/// For encoding, pass "gzip" or "deflate" @target(javascript) +/// For encoding, pass "gzip" or "deflate" @external(javascript, "../../decompression_stream_ffi.mjs", "decompress") pub fn decompress(data: BitArray, encoding: String) -> Promise(BitArray)