( value: unknown )
| 15 | typeof value === 'object' && value !== null; |
| 16 | |
| 17 | const isCheckoutSessionResponse = ( |
| 18 | value: unknown |
| 19 | ): value is CheckoutSessionResponse => |
| 20 | isRecord(value) && |
| 21 | typeof value.publishableKey === 'string' && |
| 22 | value.publishableKey.length > 0 && |
| 23 | typeof value.checkoutSessionClientSecret === 'string' && |
| 24 | value.checkoutSessionClientSecret.length > 0; |
| 25 | |
| 26 | const getCheckoutSessionErrorMessage = (value: unknown): string | undefined => { |
| 27 | if (typeof value === 'string') { |
no test coverage detected
searching dependent graphs…