Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Mar 27, 2024
1 parent 0448302 commit 8f8066f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stat/is.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NotFoundError, stat } from "./mod.ts";

export async function isDir(path: string) {
export async function isDir(path: string): Promise<boolean> {
try {
const result = await stat(path);
return result.isDirectory;
Expand All @@ -12,7 +12,7 @@ export async function isDir(path: string) {
}
}
}
export async function isFile(path: string) {
export async function isFile(path: string): Promise<boolean> {
try {
const result = await stat(path);
return result.isFile;
Expand All @@ -24,7 +24,7 @@ export async function isFile(path: string) {
}
}
}
export async function isSymlink(path: string) {
export async function isSymlink(path: string): Promise<boolean> {
try {
const result = await stat(path);
return result.isSymlink;
Expand Down

0 comments on commit 8f8066f

Please sign in to comment.