Function
permissionKind
(value: string | undefined)
Source from the content-addressed store, hash-verified
| 42 | type QuestionKind = (typeof QUESTIONS)[number] |
| 43 | |
| 44 | function permissionKind(value: string | undefined): PermissionKind | undefined { |
| 45 | const next = (value || "edit").toLowerCase() |
| 46 | return PERMISSIONS.find((item) => item === next) |
| 47 | } |
| 48 | |
| 49 | function questionKind(value: string | undefined): QuestionKind | undefined { |
| 50 | const next = (value || "multi").toLowerCase() |
Tested by
no test coverage detected