Skip to content

Commit

Permalink
refactor: fixup typing
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Dec 9, 2024
1 parent 48311bc commit e5a4893
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/utils/chunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,15 @@ export type FileFilter = {

/**
* Limit the number of the output files
*
* @default -1 - No limit
*/
limit?: number;

/**
* Group files into this number of items group
*
* @default -1 - No limit
*/
group?: number;

Expand All @@ -82,6 +86,8 @@ export type FileFilter = {
* ```
* 5GB // 5 GB chunks
* ```
*
* @default -1 - No limit
*/
groupSize?: string;

Expand All @@ -95,7 +101,7 @@ export type FileFilter = {
* ```
* @default 1
*/
sizeMin: number;
sizeMin?: number;
};
export async function getFiles(paths: string[], args: FileFilter = { sizeMin: 1 }): Promise<string[][]> {
const limit = args.limit ?? -1; // no limit by default
Expand Down

0 comments on commit e5a4893

Please sign in to comment.