@typespec/http
Advanced tools
Comparing version 0.59.0-dev.0 to 0.59.0-dev.1
import type { DecoratorContext, Model, Type } from "@typespec/compiler"; | ||
export interface HttpPartOptions { | ||
readonly name?: string; | ||
} | ||
export type PlainDataDecorator = (context: DecoratorContext, target: Model) => void; | ||
export type HttpFileDecorator = (context: DecoratorContext, target: Model) => void; | ||
export type HttpPartDecorator = (context: DecoratorContext, target: Model, type: Type, options: unknown) => void; | ||
export type HttpPartDecorator = (context: DecoratorContext, target: Model, type: Type, options: HttpPartOptions) => void; | ||
//# sourceMappingURL=TypeSpec.Http.Private.d.ts.map |
export { $lib } from "./lib.js"; | ||
export { $linter } from "./linter.js"; | ||
export { HttpPartOptions } from "../generated-defs/TypeSpec.Http.Private.js"; | ||
export * from "./auth.js"; | ||
@@ -9,3 +10,3 @@ export * from "./content-types.js"; | ||
export * from "./parameters.js"; | ||
export { HttpPart, HttpPartOptions, getHttpFileModel, getHttpPart, isHttpFile, isOrExtendsHttpFile, } from "./private.decorators.js"; | ||
export { HttpPart, getHttpFileModel, getHttpPart, isHttpFile, isOrExtendsHttpFile, } from "./private.decorators.js"; | ||
export * from "./responses.js"; | ||
@@ -12,0 +13,0 @@ export * from "./route.js"; |
import { ModelProperty, Program, Type } from "@typespec/compiler"; | ||
import { HttpFileDecorator, HttpPartDecorator, PlainDataDecorator } from "../generated-defs/TypeSpec.Http.Private.js"; | ||
import { HttpFileDecorator, HttpPartDecorator, HttpPartOptions, PlainDataDecorator } from "../generated-defs/TypeSpec.Http.Private.js"; | ||
export declare const namespace = "TypeSpec.Http.Private"; | ||
@@ -18,5 +18,2 @@ export declare const $plainData: PlainDataDecorator; | ||
export declare function getHttpFileModel(program: Program, type: Type): HttpFileModel | undefined; | ||
export interface HttpPartOptions { | ||
readonly name?: string; | ||
} | ||
export declare const $httpPart: HttpPartDecorator; | ||
@@ -23,0 +20,0 @@ export interface HttpPart { |
{ | ||
"name": "@typespec/http", | ||
"version": "0.59.0-dev.0", | ||
"version": "0.59.0-dev.1", | ||
"author": "Microsoft Corporation", | ||
@@ -42,7 +42,7 @@ "description": "TypeSpec HTTP protocol binding", | ||
"peerDependencies": { | ||
"@typespec/compiler": "~0.58.0 || >=0.59.0-dev <0.59.0" | ||
"@typespec/compiler": "~0.58.1 || >=0.59.0-dev <0.59.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "~18.11.19", | ||
"@typespec/compiler": "~0.58.0 || >=0.59.0-dev <0.59.0", | ||
"@typespec/compiler": "~0.58.1 || >=0.59.0-dev <0.59.0", | ||
"@typespec/library-linter": "~0.58.0 || >=0.59.0-dev <0.59.0", | ||
@@ -49,0 +49,0 @@ "@vitest/coverage-v8": "^1.6.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
321443
4132