mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[binary-parse-stream] Add package binary-parse-stream (#40530)
This commit is contained in:
parent
64e9e4730e
commit
b82c575b67
6
types/binary-parse-stream/binary-parse-stream-tests.ts
Normal file
6
types/binary-parse-stream/binary-parse-stream-tests.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import BinaryParseStream = require('binary-parse-stream');
|
||||
|
||||
class Decoder extends BinaryParseStream {}
|
||||
|
||||
BinaryParseStream.One;
|
||||
BinaryParseStream.extend(new Decoder());
|
||||
19
types/binary-parse-stream/index.d.ts
vendored
Normal file
19
types/binary-parse-stream/index.d.ts
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
// Type definitions for binary-parse-stream 1.3
|
||||
// Project: https://github.com/nathan7/binary-parse-stream
|
||||
// Definitions by: Florian Keller <https://github.com/ffflorian>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import stream = require('stream');
|
||||
|
||||
declare namespace BinaryParseStream {
|
||||
const One: number;
|
||||
}
|
||||
|
||||
declare class BinaryParseStream extends stream.Transform {
|
||||
constructor(options?: stream.TransformOptions);
|
||||
static extend(parser: BinaryParseStream): BinaryParseStream;
|
||||
}
|
||||
|
||||
export = BinaryParseStream;
|
||||
23
types/binary-parse-stream/tsconfig.json
Normal file
23
types/binary-parse-stream/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"binary-parse-stream-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/binary-parse-stream/tslint.json
Normal file
1
types/binary-parse-stream/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user