Skip to content

@tripo3d/fingerprint / transformSource

Function: transformSource()

ts
function transformSource<TOptions, TValueBefore, TValueAfter>(source, transformValue): Source<TOptions, TValueAfter>;

Defined in: utils/entropy_source.ts:167

Modifies an entropy source by transforming its returned value with the given function. Keeps the source properties: sync/async, 1/2 stages.

Warning for package users: This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.

Type Parameters

Type Parameter
TOptions
TValueBefore
TValueAfter

Parameters

ParameterType
sourceSource<TOptions, TValueBefore>
transformValue(value) => TValueAfter

Returns

Source<TOptions, TValueAfter>

基于 MIT 协议发布(内部使用)