@types/stream-buffers
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -10,4 +10,4 @@ // Type definitions for stream-buffers 3.0 | ||
export interface WritableStreamBufferOptions extends stream.WritableOptions { | ||
initialSize?: number; | ||
incrementAmount?: number; | ||
initialSize?: number | undefined; | ||
incrementAmount?: number | undefined; | ||
} | ||
@@ -24,6 +24,6 @@ | ||
export interface ReadableStreamBufferOptions extends stream.ReadableOptions { | ||
frequency?: number; | ||
chunkSize?: number; | ||
initialSize?: number; | ||
incrementAmount?: number; | ||
frequency?: number | undefined; | ||
chunkSize?: number | undefined; | ||
initialSize?: number | undefined; | ||
incrementAmount?: number | undefined; | ||
} | ||
@@ -30,0 +30,0 @@ |
{ | ||
"name": "@types/stream-buffers", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "TypeScript definitions for stream-buffers", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stream-buffers", | ||
"license": "MIT", | ||
@@ -14,3 +15,3 @@ "contributors": [ | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -25,4 +26,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "ec8c06cb2710f2ccd4d96a149bcad943fb51ff92068f557b01c714cdfc6f51ad", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "9ffcb95057ba0e78d9c8da79e958c446e06f918ab811a273c03ee45c2ec8b747", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -5,13 +5,57 @@ # Installation | ||
# Summary | ||
This package contains type definitions for stream-buffers ( https://github.com/samcday/node-stream-buffer#readme ). | ||
This package contains type definitions for stream-buffers (https://github.com/samcday/node-stream-buffer#readme). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stream-buffers | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stream-buffers. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stream-buffers/index.d.ts) | ||
````ts | ||
// Type definitions for stream-buffers 3.0 | ||
// Project: https://github.com/samcday/node-stream-buffer#readme | ||
// Definitions by: Jason Dent <https://github.com/Jason3S> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
Additional Details | ||
* Last updated: Wed, 24 Apr 2019 20:18:10 GMT | ||
* Dependencies: @types/node | ||
/// <reference types="node" /> | ||
import * as stream from 'stream'; | ||
export interface WritableStreamBufferOptions extends stream.WritableOptions { | ||
initialSize?: number | undefined; | ||
incrementAmount?: number | undefined; | ||
} | ||
export class WritableStreamBuffer extends stream.Writable { | ||
constructor(options?: WritableStreamBufferOptions); | ||
size(): number; | ||
maxSize(): number; | ||
getContents(length?: number): Buffer | false; | ||
getContentsAsString(encoding?: string, length?: number): string | false; | ||
} | ||
export interface ReadableStreamBufferOptions extends stream.ReadableOptions { | ||
frequency?: number | undefined; | ||
chunkSize?: number | undefined; | ||
initialSize?: number | undefined; | ||
incrementAmount?: number | undefined; | ||
} | ||
export class ReadableStreamBuffer extends stream.Readable { | ||
constructor(options?: ReadableStreamBufferOptions); | ||
put(data: string | Buffer, encoding?: string): void; | ||
stop(): void; | ||
size(): number; | ||
maxSize(): number; | ||
} | ||
export const DEFAULT_INITIAL_SIZE: number; | ||
export const DEFAULT_INCREMENT_AMOUNT: number; | ||
export const DEFAULT_FREQUENCY: number; | ||
export const DEFAULT_CHUNK_SIZE: number; | ||
```` | ||
### Additional Details | ||
* Last updated: Fri, 02 Jul 2021 22:32:58 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Jason Dent <https://github.com/Jason3S>. | ||
These definitions were written by [Jason Dent](https://github.com/Jason3S). |
Sorry, the diff of this file is not supported yet
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5469
0
61