type param

This commit is contained in:
Alejandro Gomez 2023-02-14 00:43:17 +01:00 committed by Kieran
parent 3bcef9cccc
commit 1b8d7354fe
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -48,7 +48,7 @@ export interface LNURLTipProps {
author?: HexKey; author?: HexKey;
} }
function chunks(arr: any[], length: number) { function chunks<T>(arr: T[], length: number) {
const result = []; const result = [];
let idx = 0; let idx = 0;
let n = arr.length / length; let n = arr.length / length;