/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
/**
 * Type for providing optional extra data to {@link Dependent.markInvalid}.
 * Particular instances and/or subclasses can be used to indicate invalidations
 * that can optionally be handled less conservatively than the base invalidated case.
 *
 * @public
 */
export class InvalidationToken {
    /**
     * @param description - Shows in debugger to help identify tokens.
     * @param isSecondaryInvalidation - True iff the invalidation with this token only provides information
     * about other invalidation,
     * and thus, if otherwise ignoring tokens, this invalidation can be ignored.
     */
    constructor(description, isSecondaryInvalidation = false) {
        this.description = description;
        this.isSecondaryInvalidation = isSecondaryInvalidation;
    }
}
//# sourceMappingURL=dependencies.js.map