mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
fix(serialport): missing includeDelimiter option for delimiter parser (#27222)
Please fill in this template. - [x] Use a meaningful title for the pull request. Include the name of the package modified. - [x] Test the change in your own code. (Compile and run.) - [x] Add or edit tests to reflect the change. (Run with `npm test`.) - [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request). - [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes). - [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present). Select one of these and delete the others: If changing an existing definition: - [x] Provide a URL to documentation or source code which provides context for the suggested changes: https://node-serialport.github.io/utilities/parser-delimiter_delimiter.js.html - [ ] Increase the version number in the header if appropriate. - [ ] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.
This commit is contained in:
committed by
Ryan Cavanaugh
parent
5831bb2199
commit
0db033ec96
Vendored
+1
-1
@@ -87,7 +87,7 @@ declare namespace SerialPort {
|
||||
constructor();
|
||||
}
|
||||
class Delimiter extends Stream.Transform {
|
||||
constructor(options: {delimiter: string | Buffer | number[]});
|
||||
constructor(options: {delimiter: string | Buffer | number[], includeDelimiter?: boolean});
|
||||
}
|
||||
class Readline extends Delimiter {
|
||||
constructor(options: {delimiter: string | Buffer | number[], encoding?: 'ascii'|'utf8'|'utf16le'|'ucs2'|'base64'|'binary'|'hex'});
|
||||
|
||||
Reference in New Issue
Block a user