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