Installation
npm install --save @types/hidefile
Summary
This package contains type definitions for hidefile (https://github.com/stevenvachon/hidefile).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hidefile.
index.d.ts
/// <reference types="node" />
import { URL } from "url";
export function hide(
path: string | Buffer | URL,
callback: (error: Error | null, newpath?: string | Buffer | URL) => unknown,
): void;
export function hideSync(
path: string | Buffer | URL,
): string | Buffer | URL;
export function isDotPrefixed(
path: string | Buffer | URL,
): boolean;
export function isHidden(
path: string | Buffer | URL,
callback: (error: Error | null, result: boolean) => unknown,
): void;
export function isHiddenSync(
path: string | Buffer | URL,
): boolean;
export function reveal(
path: string | Buffer | URL,
callback: (error: Error | null, newpath?: string | Buffer | URL) => unknown,
): void;
export function revealSync(
path: string | Buffer | URL,
): string | Buffer | URL;
export function shouldBeHidden(
path: string | Buffer | URL,
callback: (error: Error | null, result: boolean) => unknown,
): void;
export function shouldBeHiddenSync(
path: string | Buffer | URL,
): boolean;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/node
Credits
These definitions were written by Nicholas Nelson.