Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
add typings for the public API (#2)
Browse files Browse the repository at this point in the history
* add typings for the public API

* Update package.json

Co-Authored-By: shiftkey <brendan@github.com>
  • Loading branch information
shiftkey committed Mar 5, 2019
1 parent 7c8a1bd commit b391668
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions index.d.ts
@@ -0,0 +1,25 @@
export function clearAuthorizationCache(): void;

export function createWriteStream(filePath: string): void;

export function makeTree(
directoryPath: string,
callback: (error: Error | null) => void
): void;

export function recursiveCopy(
sourcePath: string,
destinationPath: string,
callback: (error: Error | null) => void
): void;

export function symlink(
target: string,
filePath: string,
callback: (error: Error | null) => void
): void;

export function unlink(
filePath: string,
callback: (error: Error | null) => void
): void;
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.7",
"description": "Manipulate files with escalated privileges",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "standard && mocha"
},
Expand Down

0 comments on commit b391668

Please sign in to comment.