@types/formidable
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -176,3 +176,3 @@ // Type definitions for formidable 2.0 | ||
*/ | ||
fileWriteStreamHandler?: (() => Writable) | undefined; | ||
fileWriteStreamHandler?: ((file?: VolatileFile) => Writable) | undefined; | ||
@@ -217,3 +217,3 @@ /** | ||
*/ | ||
interface FileJSON extends Pick<File, "size" | "filepath" | "originalFilename" | "mimetype" | "hash"> { | ||
interface FileJSON extends Pick<File, "size" | "filepath" | "originalFilename" | "mimetype" | "hash" | "newFilename"> { | ||
length: number; | ||
@@ -220,0 +220,0 @@ mimetype: string | null; |
{ | ||
"name": "@types/formidable", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "TypeScript definitions for formidable", | ||
@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/formidable", | ||
}, | ||
"typesPublisherContentHash": "1c16a50024730c3aa195a3732e682f00caac6ab41f1f3684f2d91242556ec3f7", | ||
"typeScriptVersion": "3.9" | ||
"typesPublisherContentHash": "af11822000b90c60585e66b2e8891aad2f839c463065451f43daf828b3498442", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 02 May 2022 15:31:38 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
* Last updated: Tue, 09 May 2023 18:32:51 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/node:events](https://npmjs.com/package/@types/node:events) | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
@@ -1,5 +0,14 @@ | ||
import PersistentFile = require("./PersistentFile"); | ||
import { EventEmitter } from 'node:events'; | ||
import type { File, FileJSON } from "./index"; | ||
declare const VolatileFile: typeof PersistentFile; | ||
declare class VolatileFile extends EventEmitter { | ||
constructor(properties: File); | ||
open(): void; | ||
toJSON(): FileJSON; | ||
toString(): string; | ||
write(buffer: string, cb: () => void): void; | ||
end(cb: () => void): void; | ||
destroy(): void; | ||
} | ||
export = VolatileFile; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18665
425