Skip to content

@tripo3d/fingerprint / Source

Type Alias: Source<TOptions, TValue>

ts
type Source<TOptions, TValue> = (options) => MaybePromise<TValue | (() => MaybePromise<TValue>)>;

Defined in: utils/entropy_source.ts:11

A functions that returns data with entropy to identify visitor.

See https://github.com/fingerprintjs/fingerprintjs/blob/master/contributing.md#how-to-add-an-entropy-source to learn how entropy source works and how to make your own.

Type Parameters

Type Parameter
TOptions
TValue

Parameters

ParameterType
optionsTOptions

Returns

MaybePromise<TValue | (() => MaybePromise<TValue>)>

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