UNPKG

@azure-tools/typespec-java

Version:

TypeSpec library for emitting Java client from the TypeSpec REST protocol binding

17 lines 604 B
/* eslint-disable @typescript-eslint/no-unsafe-declaration-merging */ import { Schema, SchemaType } from "@autorest/codemodel"; import { Initializer } from "@azure-tools/codegen"; export class ConstantValue extends Initializer { constructor(value, objectInitializer) { super(); this.value = value; this.apply(objectInitializer); } } export class ConstantSchema extends Schema { constructor(name, description, objectInitializer) { super(name, description, SchemaType.Constant); this.apply(objectInitializer); } } //# sourceMappingURL=constant.js.map