( getOldFlags: () => Record<string, boolean>, newFlags: Record<string, boolean>, flagsToBitfield: (flags: Record<string, boolean>) => number, )
| 50 | } |
| 51 | |
| 52 | export function mergeFlags( |
| 53 | getOldFlags: () => Record<string, boolean>, |
| 54 | newFlags: Record<string, boolean>, |
| 55 | flagsToBitfield: (flags: Record<string, boolean>) => number, |
| 56 | ) { |
| 57 | const oldFlags = getOldFlags(); |
| 58 | const mergedFlags = { ...oldFlags, ...newFlags }; |
| 59 | return flagsToBitfield(mergedFlags); |
| 60 | } |
no outgoing calls
no test coverage detected