UNPKG

586 BTypeScriptView Raw
1// Type definitions for chownr 1.0
2// Project: https://github.com/isaacs/chownr#readme
3// Definitions by: BendingBender <https://github.com/BendingBender>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6/// <reference types="node" />
7import { URL } from 'url';
8
9export = chownr;
10
11declare function chownr(path: chownr.PathLike, uid: number, gid: number, callback: (err: NodeJS.ErrnoException) => void): void;
12
13declare namespace chownr {
14 function sync(path: PathLike, uid: number, gid: number): void;
15
16 type PathLike = string | Buffer | URL;
17}