@autorest/codemodel
Version:
AutoRest code model library
16 lines • 870 B
TypeScript
import { DeepPartial } from "@azure-tools/codegen";
import { Schema, ComplexSchema } from "../schema";
import { SchemaType } from "../schema-type";
/** a schema that represents a key-value collection */
export interface DictionarySchema<ElementType extends Schema = Schema> extends ComplexSchema {
/** the schema type */
type: SchemaType.Dictionary;
/** the element type of the dictionary. (Keys are always strings) */
elementType: ElementType;
/** if elements in the dictionary should be nullable */
nullableItems?: boolean;
}
export declare class DictionarySchema<ElementType extends Schema = Schema> extends Schema implements DictionarySchema<ElementType> {
constructor(name: string, description: string, elementType: ElementType, objectInitializer?: DeepPartial<DictionarySchema<ElementType>>);
}
//# sourceMappingURL=dictionary.d.ts.map