Merge pull request #264 from unslothai/fix/attachment-tsx-type-error

fix(attachment): replace never exhaustive check to fix Colab TS2322 b…
This commit is contained in:
Wasim Yousef Said 2026-02-25 17:19:44 -08:00 committed by GitHub
commit 2f84bbf0e0

View file

@ -149,10 +149,8 @@ const AttachmentUI: FC = () => {
return "Document";
case "file":
return "File";
default: {
const _exhaustiveCheck: never = type;
throw new Error(`Unknown attachment type: ${_exhaustiveCheck}`);
}
default:
throw new Error(`Unknown attachment type: ${type as string}`);
}
});