"use strict";
/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.library = exports.all = exports.primitives = exports.handle = exports.string = exports.boolean = exports.number = void 0;
const feature_libraries_1 = require("../feature-libraries");
const core_1 = require("../core");
/**
 * Names in this domain follow https://en.wikipedia.org/wiki/Reverse_domain_name_notation
 */
const builder = new feature_libraries_1.SchemaBuilder("Leaf");
/**
 * @alpha
 */
exports.number = builder.leaf("com.fluidframework.leaf.number", core_1.ValueSchema.Number);
/**
 * @alpha
 */
exports.boolean = builder.leaf("com.fluidframework.leaf.boolean", core_1.ValueSchema.Boolean);
/**
 * @alpha
 */
exports.string = builder.leaf("com.fluidframework.leaf.string", core_1.ValueSchema.String);
/**
 * @alpha
 */
exports.handle = builder.leaf("com.fluidframework.leaf.handle", core_1.ValueSchema.FluidHandle);
/**
 * @alpha
 */
exports.primitives = [exports.number, exports.boolean, exports.string];
/**
 * Types allowed as roots of Json content.
 * @alpha
 */
exports.all = [exports.handle, ...exports.primitives];
/**
 * @alpha
 */
exports.library = builder.intoLibrary();
//# sourceMappingURL=leafDomain.js.map