(fields: readonly T[])
| 2 | import { Service } from './context'; |
| 3 | |
| 4 | export function buildProjection<T extends string | number = string>(fields: readonly T[]): Record<T, true> { |
| 5 | const o: Record<T, true> = Object.create(null); |
| 6 | for (const k of fields) o[k] = true; |
| 7 | return o; |
| 8 | } |
| 9 | |
| 10 | export const log2 = (val: bigint | number) => { |
| 11 | if (typeof val === 'bigint') { |
no test coverage detected