Skip to content

Commit 5026592

Browse files
committed
🚑
1 parent f0c58f4 commit 5026592

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎util/deno.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gaubee/util",
3-
"version": "0.24.0",
3+
"version": "0.24.1",
44
"exports": {
55
"./abort": "./src/abort.ts",
66
"./bigint": "./src/bigint.ts",

‎util/src/throttle.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { type Timmer, timmers } from "./promise.ts";
44
export namespace func_throttle {
55
export type ThrottledFunction<F extends Func> = Func.SetReturn<F, Promise<Func.Return<F>>> & {
66
readonly isPending: boolean;
7-
clear(): void;
7+
cancel(): void;
88
source: F;
99
flush(): void;
1010
};
@@ -14,7 +14,7 @@ export const func_throttle = <T extends Func>(
1414
fn: T,
1515
wait: number | Timmer = 0,
1616
options: { waitPromise?: boolean; before?: boolean } = {},
17-
) => {
17+
): func_throttle.ThrottledFunction<T> => {
1818
const timmer = timmers.from(wait);
1919
let clear: Timmer.Clear | undefined;
2020

‎util/src/typedarray.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const typedarray_contact = <
1414
>(
1515
ctor: new (len: number) => T,
1616
buffers: T[],
17-
) => {
17+
): T => {
1818
const res = new ctor(buffers.reduce((len, u) => len + u.length, 0));
1919
let pos = 0;
2020
for (const u of buffers) {

0 commit comments

Comments
 (0)