"use strict";
/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.isRecordNodeSchema = exports.RecordNodeSchema = void 0;
const index_js_1 = require("../../core/index.js");
/**
 * @alpha
 */
exports.RecordNodeSchema = {
    /**
     * `instanceof`-based narrowing support for {@link (RecordNodeSchema:type)} in JavaScript and TypeScript 5.3 or newer.
     */
    [Symbol.hasInstance](value) {
        return isRecordNodeSchema(value);
    },
};
/**
 * Narrows a {@link (TreeNodeSchema:interface)} to an {@link (RecordNodeSchema:interface)}.
 * @privateRemarks
 * If at some point we want to have internal only APIs for RecordNodeSchema (like done for objects),
 * this can include those since its not the public-facing API.
 */
function isRecordNodeSchema(schema) {
    return schema.kind === index_js_1.NodeKind.Record;
}
exports.isRecordNodeSchema = isRecordNodeSchema;
//# sourceMappingURL=recordNodeTypes.js.map