MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / assertNotNullish

Function assertNotNullish

apps/web/src/lib/utils.ts:274–278  ·  view source on GitHub ↗
(value: T, message?: string)

Source from the content-addressed store, hash-verified

272
273export function formatPaymentMethodDescription(info: PaymentMethodInfo): string {
274 if (info.type === 'link') {
275 return 'Stripe Link';
276 }
277 if (info.type === 'card' && info.last4) {
278 const brand = info.brand ? info.brand.charAt(0).toUpperCase() + info.brand.slice(1) : 'Card';
279 return `${brand} ending in ${info.last4}`;
280 }
281 return '';

Callers 4

utils.test.tsFile · 0.90
POSTFunction · 0.90
multi-auth.test.tsFile · 0.90
toNonNullishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected