(sessionPath: string | null | undefined)
| 10 | } |
| 11 | |
| 12 | export function getPersistedSessionPath(sessionPath: string | null | undefined) { |
| 13 | return typeof sessionPath === 'string' && |
| 14 | sessionPath.length > 0 && |
| 15 | !isLocalSessionPath(sessionPath) |
| 16 | ? sessionPath |
| 17 | : null |
| 18 | } |
| 19 | |
| 20 | function getLocalDraftParts(sessionPath: string | null | undefined) { |
| 21 | if (typeof sessionPath !== 'string' || !isLocalSessionPath(sessionPath)) { |
no test coverage detected