@toruslabs/openlogin-jrpc
Version:
OpenLogin is a plug & play authentication suite that combines the simplicity of passwordless authentication with the security of non-custodial public key infrastructure (PKI).
23 lines (22 loc) • 749 B
TypeScript
import { Duplex } from "readable-stream";
import { BufferEncoding } from "./interfaces";
export default class Substream extends Duplex {
private readonly _parent;
private readonly _name;
constructor({ parent, name }: {
parent: any;
name: string;
});
/**
* Explicitly sets read operations to a no-op.
*/
_read(): void;
/**
* Called when data should be written to this writable stream.
*
* @param chunk - Arbitrary object to write
* @param encoding - Encoding to use when writing payload
* @param callback - Called when writing is complete or an error occurs
*/
_write(chunk: unknown, _encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
}