Skip to content

Commit

Permalink
refactor(Path): unify isDir/isDirSync as aliases of `isDirectory/is…
Browse files Browse the repository at this point in the history
…DirectorySync`
  • Loading branch information
kiki-kanri committed Nov 25, 2024
1 parent 12828dc commit c24a836
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -999,15 +999,13 @@ export class Path {
/**
* @see {@link kFse.pathIsDirectory}
*/
isDirectory() {
return kFse.pathIsDirectory(this.#value);
}
isDir = this.isDirectory;

/**
* @see {@link kFse.pathIsDirectory}
*/
isDir() {
return kFse.pathIsDir(this.#value);
isDirectory() {
return kFse.pathIsDirectory(this.#value);
}

/**
Expand Down Expand Up @@ -1075,15 +1073,13 @@ export class Path {
/**
* @see {@link kFse.pathIsDirectorySync}
*/
isDirectorySync() {
return kFse.pathIsDirectorySync(this.#value);
}
isDirSync = this.isDirectorySync;

/**
* @see {@link kFse.pathIsDirectorySync}
*/
isDirSync() {
return kFse.pathIsDirSync(this.#value);
isDirectorySync() {
return kFse.pathIsDirectorySync(this.#value);
}

/**
Expand Down

0 comments on commit c24a836

Please sign in to comment.