fix: tweaks to config types

This commit is contained in:
Dragory 2024-01-27 12:46:48 +02:00
parent 6110b8190c
commit b0a9cf1bcd
No known key found for this signature in database
5 changed files with 8 additions and 6 deletions

View file

@ -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 {};