UNPKG

@types/chownr

Version:
37 lines (27 loc) 1.01 kB
# Installation > `npm install --save @types/chownr` # Summary This package contains type definitions for chownr (https://github.com/isaacs/chownr#readme). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chownr. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chownr/index.d.ts) ````ts /// <reference types="node" /> import { URL } from "url"; export = chownr; declare function chownr( path: chownr.PathLike, uid: number, gid: number, callback: (err: NodeJS.ErrnoException) => void, ): void; declare namespace chownr { function sync(path: PathLike, uid: number, gid: number): void; type PathLike = string | Buffer | URL; } ```` ### Additional Details * Last updated: Mon, 06 Nov 2023 22:41:05 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node) # Credits These definitions were written by [BendingBender](https://github.com/BendingBender).