@eleven-am/faker
    Preparing search index...

    Interface ReferenceOptions<RefT>

    interface ReferenceOptions<RefT extends object> {
        collection: RefT[];
        idField?: keyof RefT;
    }

    Type Parameters

    • RefT extends object
    Index

    Properties

    Properties

    collection: RefT[]

    The array of possible items to reference.

    idField?: keyof RefT

    Optional field name within the collection items whose value should be returned instead of the whole object.