microsoft/typespec

Public

mirrored from https://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
archive/docusaurus-website

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

packages/http/generated-defs/TypeSpec.Http.Private.ts

22lines · modecode

1import type { DecoratorContext, Model, Type } from "@typespec/compiler";
2
3export interface HttpPartOptions {
4 readonly name?: string;
5}
6
7export type PlainDataDecorator = (context: DecoratorContext, target: Model) => void;
8
9export type HttpFileDecorator = (context: DecoratorContext, target: Model) => void;
10
11export type HttpPartDecorator = (
12 context: DecoratorContext,
13 target: Model,
14 type: Type,
15 options: HttpPartOptions,
16) => void;
17
18export type TypeSpecHttpPrivateDecorators = {
19 plainData: PlainDataDecorator;
20 httpFile: HttpFileDecorator;
21 httpPart: HttpPartDecorator;
22};