a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: account for unions with no members

Mary 287a157d 527f3edb

+12 -2
+6
.changeset/shy-rockets-throw.md
··· 1 + --- 2 + '@atcute/ozone': patch 3 + '@atcute/lex-cli': patch 4 + --- 5 + 6 + account for unions with no members
+5 -1
packages/core/lex-cli/src/generator.ts
··· 207 207 return (ns ? toNamespace(ns) + '.' : '') + (ref ? toUpper(ref) : 'Main'); 208 208 }); 209 209 210 - val = `Brand.Union<${refs.join('|')}>`; 210 + if (refs.length !== 0) { 211 + val = `Brand.Union<${refs.join('|')}>`; 212 + } else { 213 + val = `unknown`; 214 + } 211 215 } else if (type === 'object' || type === 'params') { 212 216 const required = def.required; 213 217 const nullable = type === 'object' ? def.nullable : [];
+1 -1
packages/definitions/ozone/lib/lexicons.ts
··· 514 514 [Brand.Type]?: 'tools.ozone.moderation.defs#subjectView'; 515 515 subject: string; 516 516 type: ComAtprotoModerationDefs.SubjectType; 517 - profile?: Brand.Union<>; 517 + profile?: unknown; 518 518 record?: RecordViewDetail; 519 519 repo?: RepoViewDetail; 520 520 status?: SubjectStatusView;