(value: unknown)
| 14 | } |
| 15 | |
| 16 | export const hasSetOption = (value: unknown): value is { setOption: (key: string, next: unknown) => void } => { |
| 17 | return isRecord(value) && typeof value.setOption === "function" |
| 18 | } |
| 19 | |
| 20 | export const setOptionIfSupported = (value: unknown, key: string, next: unknown) => { |
| 21 | if (!hasSetOption(value)) return |
no test coverage detected