tiny-readdir 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- import type { Options, Result } from './types';
1
+ import type { Dirent, Options, Result } from './types';
2
2
  declare const readdir: (rootPath: string, options?: Options) => Promise<Result>;
3
3
  export default readdir;
4
+ export type { Dirent, Options, Result };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "tiny-readdir",
3
3
  "repository": "github:fabiospampinato/tiny-readdir",
4
4
  "description": "A simple promisified recursive readdir function.",
5
- "version": "2.5.0",
5
+ "version": "2.6.0",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "exports": "./dist/index.js",
package/src/index.ts CHANGED
@@ -5,7 +5,7 @@ import fs from 'node:fs';
5
5
  import path from 'node:path';
6
6
  import {NOOP_PROMISE_LIKE} from './constants';
7
7
  import {isFunction, makeCounterPromise} from './utils';
8
- import type {Options, ResultDirectory, ResultDirectories, Result} from './types';
8
+ import type {Dirent, Options, ResultDirectory, ResultDirectories, Result} from './types';
9
9
 
10
10
  /* MAIN */
11
11
 
@@ -252,3 +252,4 @@ const readdir = ( rootPath: string, options?: Options ): Promise<Result> => {
252
252
  /* EXPORT */
253
253
 
254
254
  export default readdir;
255
+ export type {Dirent, Options, Result};