-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix tests, add some options (#127)
* chore: fix test, add some options * chore: update README
- Loading branch information
1 parent
4e8cd9c
commit c5622da
Showing
8 changed files
with
185 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
declare namespace lstree { | ||
interface options { | ||
ignore?: string[]; | ||
description?: Map<string, string>; | ||
depth?: number; | ||
showFilesDescriptor?: boolean; | ||
} | ||
|
||
export function tree(options?: options): (dir: string, pRootPath?: number) => void; | ||
export interface LSTreeOptions { | ||
ignore?: string[]; | ||
description?: Map<string, string>; | ||
depth?: number; | ||
showFilesDescriptor?: boolean; | ||
showTitle?: boolean; | ||
title?: string; | ||
margin?: { | ||
top?: number; | ||
left?: number; | ||
bottom?: number; | ||
}; | ||
} | ||
|
||
export as namespace lstree; | ||
export = lstree; | ||
|
||
export default function tree(options?: LSTreeOptions): (dir: string, pRootPath?: number) => Promise<void>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.