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

3.0.0 • Public • Published

Installation

npm install --save @types/winattr

Summary

This package contains type definitions for winattr (https://github.com/stevenvachon/winattr).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/winattr.

index.d.ts

export type Attr = "archive" | "hidden" | "readonly" | "system";

export type Attrs = Record<Attr, boolean>;

export function get(
    path: string,
    callback: <TError extends Error | null>(error: TError, attrs: TError extends TError ? never : Attrs) => void,
): void;
export function getSync(path: string): Attrs;

export function set(path: string, attrs: Partial<Attrs>, callback: (error: Error | null) => void): void;
export function setSync(path: string, attrs: Partial<Attrs>): void;

Additional Details

  • Last updated: Wed, 27 Dec 2023 18:07:15 GMT
  • Dependencies: none

Credits

These definitions were written by Anatoliy Oblaukhov.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/winattr

Weekly Downloads

68

Version

3.0.0

License

MIT

Unpacked Size

3.51 kB

Total Files

5

Last publish

Collaborators

  • types