Skip to content

Commit

Permalink
🚑
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaubee committed Feb 20, 2025
1 parent f0c58f4 commit 5026592
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion util/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gaubee/util",
"version": "0.24.0",
"version": "0.24.1",
"exports": {
"./abort": "./src/abort.ts",
"./bigint": "./src/bigint.ts",
Expand Down
4 changes: 2 additions & 2 deletions util/src/throttle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { type Timmer, timmers } from "./promise.ts";
export namespace func_throttle {
export type ThrottledFunction<F extends Func> = Func.SetReturn<F, Promise<Func.Return<F>>> & {
readonly isPending: boolean;
clear(): void;
cancel(): void;
source: F;
flush(): void;
};
Expand All @@ -14,7 +14,7 @@ export const func_throttle = <T extends Func>(
fn: T,
wait: number | Timmer = 0,
options: { waitPromise?: boolean; before?: boolean } = {},
) => {
): func_throttle.ThrottledFunction<T> => {
const timmer = timmers.from(wait);
let clear: Timmer.Clear | undefined;

Expand Down
2 changes: 1 addition & 1 deletion util/src/typedarray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const typedarray_contact = <
>(
ctor: new (len: number) => T,
buffers: T[],
) => {
): T => {
const res = new ctor(buffers.reduce((len, u) => len + u.length, 0));
let pos = 0;
for (const u of buffers) {
Expand Down

0 comments on commit 5026592

Please sign in to comment.