Skip to content

Commit

Permalink
fix: fix typescript declare
Browse files Browse the repository at this point in the history
  • Loading branch information
jooy2 committed Mar 11, 2024
1 parent 6bea8fc commit 353c94f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
declare module 'winattr';
declare module 'fs';

interface FileStat {
success: boolean;
isDirectory: boolean;
size: number;
sizeHumanized: string;
name: string;
dirname: string;
path: string;
ext: string;
created: number;
modified: number;
}
13 changes: 13 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ import {
} from 'fs';
import { createHash } from 'crypto';

interface FileStat {
success: boolean;
isDirectory: boolean;
size: number;
sizeHumanized: string;
name: string;
dirname: string;
path: string;
ext: string;
created: number;
modified: number;
}

export default class FsMan {
static isHidden(filePath: string, isWindows = false): Promise<boolean> {
return new Promise<boolean>((resolve) => {
Expand Down

0 comments on commit 353c94f

Please sign in to comment.