( id: string )
| 40 | } |
| 41 | |
| 42 | function parseStackId( |
| 43 | id: string |
| 44 | ): { frontendId: string; backendId: string } | null { |
| 45 | if (!isStackId(id)) return null |
| 46 | const rest = id.slice('stack:'.length) |
| 47 | const [frontendId, backendId] = rest.split('+') |
| 48 | if (!frontendId || !backendId) return null |
| 49 | return { frontendId, backendId } |
| 50 | } |
| 51 | |
| 52 | export function composeStack( |
| 53 | frontendId: string, |
no test coverage detected