fix: tweaks to config types
This commit is contained in:
parent
6110b8190c
commit
b0a9cf1bcd
5 changed files with 8 additions and 6 deletions
|
@ -289,6 +289,8 @@ export type StrictMessageContent = {
|
|||
|
||||
export const zMessageContent = z.union([zBoundedCharacters(0, 4000), zStrictMessageContent]);
|
||||
|
||||
export type MessageContent = string | StrictMessageContent;
|
||||
|
||||
export function validateAndParseMessageContent(input: unknown): StrictMessageContent {
|
||||
if (input == null) {
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue