(value: string)
| 2 | import { AppError } from '../kernel/errors.ts'; |
| 3 | |
| 4 | function looksLikeInlineJson(value: string): boolean { |
| 5 | const trimmed = value.trim(); |
| 6 | return ( |
| 7 | (trimmed.startsWith('{') && trimmed.endsWith('}')) || |
| 8 | (trimmed.startsWith('[') && trimmed.endsWith(']')) |
| 9 | ); |
| 10 | } |
| 11 | |
| 12 | export type ResolvedPayloadInput = |
| 13 | | { kind: 'file'; path: string } |
no test coverage detected
searching dependent graphs…