Vinyl
    Preparing search index...

    Interface TrackFactory<TrackLoadOptionsType>

    Produces a new Track for the given configuration options.

    interface TrackFactory<TrackLoadOptionsType extends TrackLoadOptions> {
        createTrack(options: TrackLoadOptionsType): Track;
        validate(options: TrackLoadOptionsType): void;
    }

    Type Parameters

    Index

    Methods

    • Throws a validation error if the track options are invalid.

      Parameters

      Returns void