(
condition: IEditableElement | undefined,
isEditable: boolean
)
| 135 | } |
| 136 | |
| 137 | export function ifEditable( |
| 138 | condition: IEditableElement | undefined, |
| 139 | isEditable: boolean |
| 140 | ) { |
| 141 | if (!condition || condition.column_editable === undefined) { |
| 142 | return true; |
| 143 | } |
| 144 | return isEditable === condition.column_editable; |
| 145 | } |
| 146 | |
| 147 | export type Filter<T> = (s: T[]) => T[]; |
| 148 |
no outgoing calls
no test coverage detected
searching dependent graphs…