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.