(state: DeferBlockState, block: DeferBlockDetails)
| 73 | } |
| 74 | |
| 75 | function hasStateTemplate(state: DeferBlockState, block: DeferBlockDetails) { |
| 76 | switch (state) { |
| 77 | case DeferBlockState.Placeholder: |
| 78 | return block.tDetails.placeholderTmplIndex !== null; |
| 79 | case DeferBlockState.Loading: |
| 80 | return block.tDetails.loadingTmplIndex !== null; |
| 81 | case DeferBlockState.Error: |
| 82 | return block.tDetails.errorTmplIndex !== null; |
| 83 | case DeferBlockState.Complete: |
| 84 | return true; |
| 85 | default: |
| 86 | return false; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | function getDeferBlockStateNameFromEnum(state: DeferBlockState) { |
| 91 | switch (state) { |
no outgoing calls
no test coverage detected
searching dependent graphs…