Skip to content

Commit

Permalink
add the BytesKnownEncoding to the type of encodingData (#2795)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcturusZhang authored Jan 18, 2024
1 parent fa57980 commit 13bac4a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@typespec/compiler",
"comment": "add bytes encode to the general encode type",
"type": "none"
}
],
"packageName": "@typespec/compiler"
}
2 changes: 1 addition & 1 deletion packages/compiler/src/lib/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ export type DateTimeKnownEncoding = "rfc3339" | "rfc7231" | "unixTimestamp";
export type DurationKnownEncoding = "ISO8601" | "seconds";
export type BytesKnownEncoding = "base64" | "base64url";
export interface EncodeData {
encoding: DateTimeKnownEncoding | DurationKnownEncoding | string;
encoding: DateTimeKnownEncoding | DurationKnownEncoding | BytesKnownEncoding | string;
type: Scalar;
}

Expand Down

0 comments on commit 13bac4a

Please sign in to comment.