Skip to content

Commit 0e1516a

Browse files
committed
Fixing type def of 'partial()'
1 parent 5b2198a commit 0e1516a

8 files changed

+9
-9
lines changed

dist/filesize.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @copyright 2024 Jason Mulligan <[email protected]>
55
* @license BSD-3-Clause
6-
* @version 10.1.3
6+
* @version 10.1.4
77
*/
88
'use strict';
99

dist/filesize.esm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @copyright 2024 Jason Mulligan <[email protected]>
55
* @license BSD-3-Clause
6-
* @version 10.1.3
6+
* @version 10.1.4
77
*/
88
const ARRAY = "array";
99
const BIT = "bit";

dist/filesize.esm.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/filesize.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @copyright 2024 Jason Mulligan <[email protected]>
55
* @license BSD-3-Clause
6-
* @version 10.1.3
6+
* @version 10.1.4
77
*/
88
(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?f(exports):typeof define==='function'&&define.amd?define(['exports'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f(g.filesize={}));})(this,(function(exports){'use strict';const ARRAY = "array";
99
const BIT = "bit";

dist/filesize.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "filesize",
33
"description": "JavaScript library to generate a human readable String describing the file size",
4-
"version": "10.1.3",
4+
"version": "10.1.4",
55
"homepage": "https://filesizejs.com",
66
"author": "Jason Mulligan <[email protected]>",
77
"repository": {

types/filesize.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ type FileSizeReturnType<Options extends FileSizeOptions> =
5353
: string;
5454

5555
export function filesize<Options extends FileSizeOptions = undefined>(byteCount: number | string | bigint, options?: Options): FileSizeReturnType<Options>
56-
export function partial<Options extends FileSizeOptions = undefined>(options?: Options): (byteCount: number) => FileSizeReturnType<Options>
56+
export function partial<Options extends FileSizeOptions = undefined>(options?: Options): (byteCount: number | string | bigint) => FileSizeReturnType<Options>

0 commit comments

Comments
 (0)