mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
sonic-boom: mark as not needed (#54756)
* run not-needed script * pino: add dependency on sonic-boom
This commit is contained in:
@@ -4606,6 +4606,10 @@
|
||||
"libraryName": "sololearn",
|
||||
"asOfVersion": "2.5.0"
|
||||
},
|
||||
"sonic-boom": {
|
||||
"libraryName": "sonic-boom",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
"soundex-code": {
|
||||
"libraryName": "soundex-code",
|
||||
"asOfVersion": "2.0.0"
|
||||
|
||||
2
types/pino/index.d.ts
vendored
2
types/pino/index.d.ts
vendored
@@ -20,7 +20,7 @@
|
||||
import stream = require("stream");
|
||||
import http = require("http");
|
||||
import { EventEmitter } from "events";
|
||||
import SonicBoom = require("sonic-boom");
|
||||
import SonicBoom from "sonic-boom";
|
||||
import * as pinoStdSerializers from "pino-std-serializers";
|
||||
import * as PinoPretty from "pino-pretty";
|
||||
|
||||
|
||||
6
types/pino/package.json
Normal file
6
types/pino/package.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"sonic-boom": "^2.1.0"
|
||||
}
|
||||
}
|
||||
50
types/sonic-boom/index.d.ts
vendored
50
types/sonic-boom/index.d.ts
vendored
@@ -1,50 +0,0 @@
|
||||
// Type definitions for sonic-boom 0.7
|
||||
// Project: https://github.com/mcollina/sonic-boom
|
||||
// Definitions by: Alex Ferrando <https://github.com/alferpal>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node"/>
|
||||
|
||||
import { EventEmitter } from 'events';
|
||||
|
||||
export = SonicBoom;
|
||||
|
||||
declare class SonicBoom extends EventEmitter {
|
||||
/**
|
||||
* @param [fileDescriptor] File path or numerical file descriptor
|
||||
* relative protocol is enabled. Default: process.stdout
|
||||
* @returns a new sonic-boom instance
|
||||
*/
|
||||
constructor(fileDescriptor: string | number, minLength?: number, sync?: boolean)
|
||||
|
||||
/**
|
||||
* Writes the string to the file. It will return false to signal the producer to slow down.
|
||||
*/
|
||||
write(string: string): void;
|
||||
|
||||
/**
|
||||
* Writes the current buffer to the file if a write was not in progress.
|
||||
* Do nothing if minLength is zero or if it is already writing.
|
||||
*/
|
||||
flush(): void;
|
||||
|
||||
/**
|
||||
* Reopen the file in place, useful for log rotation.
|
||||
*/
|
||||
reopen(fileDescriptor?: string | number): void;
|
||||
|
||||
/**
|
||||
* Flushes the buffered data synchronously. This is a costly operation.
|
||||
*/
|
||||
flushSync(): void;
|
||||
|
||||
/**
|
||||
* Closes the stream, the data will be flushed down asynchronously
|
||||
*/
|
||||
end(): void;
|
||||
|
||||
/**
|
||||
* Closes the stream immediately, the data is not flushed.
|
||||
*/
|
||||
destroy(): void;
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
import SonicBoom = require('sonic-boom');
|
||||
const sonic = new SonicBoom(1);
|
||||
|
||||
sonic.write('hello sonic\n');
|
||||
|
||||
sonic.flush();
|
||||
|
||||
sonic.flushSync();
|
||||
|
||||
sonic.reopen();
|
||||
|
||||
sonic.end();
|
||||
|
||||
sonic.destroy();
|
||||
|
||||
const extraSonic = new SonicBoom(1, 0, true);
|
||||
|
||||
extraSonic.write('extra sonic\n');
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"sonic-boom-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user