@types/tmp
Advanced tools
+14
-14
@@ -10,22 +10,22 @@ // Type definitions for tmp 0.2 | ||
| export interface TmpNameOptions { | ||
| dir?: string; | ||
| name?: string; | ||
| postfix?: string; | ||
| prefix?: string; | ||
| template?: string; | ||
| tmpdir?: string; | ||
| tries?: number; | ||
| dir?: string | undefined; | ||
| name?: string | undefined; | ||
| postfix?: string | undefined; | ||
| prefix?: string | undefined; | ||
| template?: string | undefined; | ||
| tmpdir?: string | undefined; | ||
| tries?: number | undefined; | ||
| } | ||
| export interface FileOptions extends TmpNameOptions { | ||
| detachDescriptor?: boolean; | ||
| discardDescriptor?: boolean; | ||
| keep?: boolean; | ||
| mode?: number; | ||
| detachDescriptor?: boolean | undefined; | ||
| discardDescriptor?: boolean | undefined; | ||
| keep?: boolean | undefined; | ||
| mode?: number | undefined; | ||
| } | ||
| export interface DirOptions extends TmpNameOptions { | ||
| keep?: boolean; | ||
| mode?: number; | ||
| unsafeCleanup?: boolean; | ||
| keep?: boolean | undefined; | ||
| mode?: number | undefined; | ||
| unsafeCleanup?: boolean | undefined; | ||
| } | ||
@@ -32,0 +32,0 @@ |
+4
-3
| { | ||
| "name": "@types/tmp", | ||
| "version": "0.2.0", | ||
| "version": "0.2.1", | ||
| "description": "TypeScript definitions for tmp", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tmp", | ||
| "license": "MIT", | ||
@@ -37,4 +38,4 @@ "contributors": [ | ||
| "dependencies": {}, | ||
| "typesPublisherContentHash": "81e5cbee412d51593d28e13f6046ba15d28b4480ea65938ccc7d15e098eb663c", | ||
| "typeScriptVersion": "2.9" | ||
| "typesPublisherContentHash": "905b0f1d0a7fe5e4428efdb59a7069504658b2601e4d8d336ba18ca7258015ba", | ||
| "typeScriptVersion": "3.6" | ||
| } |
+80
-1
@@ -9,5 +9,84 @@ # Installation | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tmp. | ||
| ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tmp/index.d.ts) | ||
| ````ts | ||
| // Type definitions for tmp 0.2 | ||
| // Project: http://github.com/raszi/node-tmp | ||
| // Definitions by: Jared Klopper <https://github.com/optical> | ||
| // Gyusun Yeom <https://github.com/Perlmint> | ||
| // Alan Plum <https://github.com/pluma> | ||
| // Carsten Klein <https://github.com/silkentrance> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| export interface TmpNameOptions { | ||
| dir?: string | undefined; | ||
| name?: string | undefined; | ||
| postfix?: string | undefined; | ||
| prefix?: string | undefined; | ||
| template?: string | undefined; | ||
| tmpdir?: string | undefined; | ||
| tries?: number | undefined; | ||
| } | ||
| export interface FileOptions extends TmpNameOptions { | ||
| detachDescriptor?: boolean | undefined; | ||
| discardDescriptor?: boolean | undefined; | ||
| keep?: boolean | undefined; | ||
| mode?: number | undefined; | ||
| } | ||
| export interface DirOptions extends TmpNameOptions { | ||
| keep?: boolean | undefined; | ||
| mode?: number | undefined; | ||
| unsafeCleanup?: boolean | undefined; | ||
| } | ||
| export interface FileResult { | ||
| name: string; | ||
| fd: number; | ||
| removeCallback: () => void; | ||
| } | ||
| export interface DirResult { | ||
| name: string; | ||
| removeCallback: () => void; | ||
| } | ||
| export type FileCallback = ( | ||
| err: Error|null, | ||
| name: string, | ||
| fd: number, | ||
| removeCallback: () => void | ||
| ) => void; | ||
| export type DirCallback = ( | ||
| err: Error|null, | ||
| name: string, | ||
| removeCallback: () => void | ||
| ) => void; | ||
| export type TmpNameCallback = (err: Error|null, name: string) => void; | ||
| export const tmpdir: string; | ||
| export function file(options: FileOptions, cb: FileCallback): void; | ||
| export function file(cb: FileCallback): void; | ||
| export function fileSync(options?: FileOptions): FileResult; | ||
| export function dir(options: DirOptions, cb: DirCallback): void; | ||
| export function dir(cb: DirCallback): void; | ||
| export function dirSync(options?: DirOptions): DirResult; | ||
| export function tmpName(options: TmpNameOptions, cb: TmpNameCallback): void; | ||
| export function tmpName(cb: TmpNameCallback): void; | ||
| export function tmpNameSync(options?: TmpNameOptions): string; | ||
| export function setGracefulCleanup(): void; | ||
| ```` | ||
| ### Additional Details | ||
| * Last updated: Fri, 01 May 2020 07:56:51 GMT | ||
| * Last updated: Fri, 02 Jul 2021 19:37:11 GMT | ||
| * Dependencies: none | ||
@@ -14,0 +93,0 @@ * Global values: none |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7341
51.86%1
-50%96
464.71%