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" />
|
7 | import { URL } from 'url';
|
8 |
|
9 | export = chownr;
|
10 |
|
11 | declare function chownr(path: chownr.PathLike, uid: number, gid: number, callback: (err: NodeJS.ErrnoException) => void): void;
|
12 |
|
13 | declare namespace chownr {
|
14 | function sync(path: PathLike, uid: number, gid: number): void;
|
15 |
|
16 | type PathLike = string | Buffer | URL;
|
17 | }
|