UNPKG

365 BTypeScriptView Raw
1/// <reference types="node" />
2import { URL } from "url";
3
4export = chownr;
5
6declare function chownr(
7 path: chownr.PathLike,
8 uid: number,
9 gid: number,
10 callback: (err: NodeJS.ErrnoException) => void,
11): void;
12
13declare namespace chownr {
14 function sync(path: PathLike, uid: number, gid: number): void;
15
16 type PathLike = string | Buffer | URL;
17}