Skip to content

Commit

Permalink
fix(typings): boolean of reused (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub authored Apr 11, 2024
1 parent fe49d53 commit a95949d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function resolveSrcOnNonWin (src: string, dest: string) {
return pathLib.relative(pathLib.dirname(dest), src)
}

function symlinkDir (target: string, path: string, opts?: { overwrite?: boolean }): Promise<{ reused: Boolean, warn?: string }> {
function symlinkDir (target: string, path: string, opts?: { overwrite?: boolean }): Promise<{ reused: boolean, warn?: string }> {
path = betterPathResolve(path)
target = betterPathResolve(target)

Expand All @@ -41,7 +41,7 @@ async function forceSymlink (
overwrite?: boolean
renameTried?: boolean
}
): Promise<{ reused: Boolean, warn?: string }> {
): Promise<{ reused: boolean, warn?: string }> {
try {
await fs.symlink(target, path, symlinkType)
return { reused: false }
Expand Down Expand Up @@ -108,7 +108,7 @@ symlinkDir['default'] = symlinkDir
export = symlinkDir

namespace symlinkDir {
export function sync (target: string, path: string, opts?: { overwrite?: boolean }): { reused: Boolean, warn?: string } {
export function sync (target: string, path: string, opts?: { overwrite?: boolean }): { reused: boolean, warn?: string } {
path = betterPathResolve(path)
target = betterPathResolve(target)

Expand All @@ -127,7 +127,7 @@ function forceSymlinkSync (
overwrite?: boolean
renameTried?: boolean
}
): { reused: Boolean, warn?: string } {
): { reused: boolean, warn?: string } {
try {
symlinkSync(target, path, symlinkType)
return { reused: false }
Expand Down

0 comments on commit a95949d

Please sign in to comment.