Skip to main content
Skip to main content

TransformOptions

admin/discounts.internal.TransformOptions

Properties

allowHalfOpenboolean
autoDestroyboolean
decodeStringsboolean
defaultEncodingBufferEncoding
emitCloseboolean
highWaterMarknumber
objectModeboolean
readableHighWaterMarknumber
readableObjectModeboolean
signalAbortSignal
When provided the corresponding AbortController can be used to cancel an asynchronous action.
writableCorkednumber
writableHighWaterMarknumber
writableObjectModeboolean

Methods

construct

Optional construct(this, callback): void

Parameters

thisTransformRequired
callback(error?: null | Error) => voidRequired

Returns

void

voidvoid

Overrides

DuplexOptions.construct


destroy

Optional destroy(this, error, callback): void

Parameters

thisTransformRequired
errornull | ErrorRequired
callback(error: null | Error) => voidRequired

Returns

void

voidvoid

Overrides

DuplexOptions.destroy


final

Optional final(this, callback): void

Parameters

thisTransformRequired
callback(error?: null | Error) => voidRequired

Returns

void

voidvoid

Overrides

DuplexOptions.final


flush

Optional flush(this, callback): void

Parameters

thisTransformRequired
callbackTransformCallbackRequired

Returns

void

voidvoid

read

Optional read(this, size): void

Parameters

thisTransformRequired
sizenumberRequired

Returns

void

voidvoid

Overrides

DuplexOptions.read


transform

Optional transform(this, chunk, encoding, callback): void

Parameters

thisTransformRequired
chunkanyRequired
encodingBufferEncodingRequired
callbackTransformCallbackRequired

Returns

void

voidvoid

write

Optional write(this, chunk, encoding, callback): void

Parameters

thisTransformRequired
chunkanyRequired
encodingBufferEncodingRequired
callback(error?: null | Error) => voidRequired

Returns

void

voidvoid

Overrides

DuplexOptions.write


writev

Optional writev(this, chunks, callback): void

Parameters

thisTransformRequired
chunks{ chunk: any ; encoding: BufferEncoding }[]Required
callback(error?: null | Error) => voidRequired

Returns

void

voidvoid

Overrides

DuplexOptions.writev

Was this section helpful?