directory-tree 3.4.0 → 3.5.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/bin/index.js +0 -0
- package/index.d.ts +4 -8
- package/package.json +1 -1
- package/.idea/encodings.xml +0 -4
- package/.idea/modules.xml +0 -8
- package/.idea/node-directory-tree.iml +0 -8
- package/.idea/vcs.xml +0 -6
package/bin/index.js
CHANGED
|
File without changes
|
package/index.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { Stats } from "fs";
|
|
2
2
|
|
|
3
|
-
interface IObj {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
3
|
declare function directoryTree<
|
|
8
|
-
TCustomFile extends
|
|
9
|
-
TCustomDir extends
|
|
10
|
-
TCustomResult extends
|
|
4
|
+
TCustomFile extends Record<string, any> = Record<string, any>,
|
|
5
|
+
TCustomDir extends Record<string, any> = Record<string, any>,
|
|
6
|
+
TCustomResult extends Record<string, any> = TCustomFile & TCustomDir
|
|
11
7
|
>(
|
|
12
8
|
path: string,
|
|
13
9
|
options?: directoryTree.DirectoryTreeOptions,
|
|
@@ -18,7 +14,7 @@ declare function directoryTree<
|
|
|
18
14
|
export as namespace directoryTree;
|
|
19
15
|
|
|
20
16
|
declare namespace directoryTree {
|
|
21
|
-
export interface DirectoryTree<C extends
|
|
17
|
+
export interface DirectoryTree<C extends Record<string, any> = Record<string, any>> {
|
|
22
18
|
path: string;
|
|
23
19
|
name: string;
|
|
24
20
|
size: number;
|
package/package.json
CHANGED
package/.idea/encodings.xml
DELETED
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/node-directory-tree.iml" filepath="$PROJECT_DIR$/.idea/node-directory-tree.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$" />
|
|
5
|
-
<orderEntry type="inheritedJdk" />
|
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
-
</component>
|
|
8
|
-
</module>
|