@types/hidefile
TypeScript icon, indicating that this package has built-in type declarations

3.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/hidefile

Weekly Downloads

1,442

Version

3.0.3

License

MIT

Unpacked Size

4.69 kB

Total Files

5

Last publish

Collaborators

  • types