From 1c80e6129a6db46c1289c6ea164cbfc68ee2d1bc Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Thu, 27 Jun 2024 18:17:44 +0800 Subject: [PATCH 1/3] expose necessary api --- packages/http/src/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/http/src/index.ts b/packages/http/src/index.ts index ee792cda39..505ed1f61d 100644 --- a/packages/http/src/index.ts +++ b/packages/http/src/index.ts @@ -7,7 +7,14 @@ export * from "./decorators.js"; export * from "./metadata.js"; export * from "./operations.js"; export * from "./parameters.js"; -export { getHttpFileModel, isHttpFile, isOrExtendsHttpFile } from "./private.decorators.js"; +export { + HttpPart, + HttpPartOptions, + getHttpFileModel, + getHttpPart, + isHttpFile, + isOrExtendsHttpFile, +} from "./private.decorators.js"; export * from "./responses.js"; export * from "./route.js"; export * from "./types.js"; From ec8a928d6f1ae3155d85c5dd4989c16b9d6aebf1 Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Thu, 27 Jun 2024 18:23:23 +0800 Subject: [PATCH 2/3] changelog --- ...expose-necessary-api-for-httppart-2024-5-27-18-23-11.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .chronus/changes/expose-necessary-api-for-httppart-2024-5-27-18-23-11.md diff --git a/.chronus/changes/expose-necessary-api-for-httppart-2024-5-27-18-23-11.md b/.chronus/changes/expose-necessary-api-for-httppart-2024-5-27-18-23-11.md new file mode 100644 index 0000000000..dbed4e5c66 --- /dev/null +++ b/.chronus/changes/expose-necessary-api-for-httppart-2024-5-27-18-23-11.md @@ -0,0 +1,7 @@ +--- +changeKind: feature +packages: + - "@typespec/http" +--- + +Expose API for HttpPart \ No newline at end of file From 4ffd83e781e722365cf47d57d4a99ba480184099 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Tue, 2 Jul 2024 11:14:21 +0800 Subject: [PATCH 3/3] Update .chronus/changes/expose-necessary-api-for-httppart-2024-5-27-18-23-11.md Co-authored-by: Timothee Guerin --- .../expose-necessary-api-for-httppart-2024-5-27-18-23-11.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.chronus/changes/expose-necessary-api-for-httppart-2024-5-27-18-23-11.md b/.chronus/changes/expose-necessary-api-for-httppart-2024-5-27-18-23-11.md index dbed4e5c66..4fdc148c51 100644 --- a/.chronus/changes/expose-necessary-api-for-httppart-2024-5-27-18-23-11.md +++ b/.chronus/changes/expose-necessary-api-for-httppart-2024-5-27-18-23-11.md @@ -4,4 +4,4 @@ packages: - "@typespec/http" --- -Expose API for HttpPart \ No newline at end of file +Expose `getHttpPart` and types functions \ No newline at end of file