( maybeData: NonPropertyKey | PropertyKey, ...args: readonly PropertyKey[] )
| 442 | ): <T extends Partial<Record<K, unknown>>>(data: T) => T[K]; |
| 443 | |
| 444 | export function prop( |
| 445 | maybeData: NonPropertyKey | PropertyKey, |
| 446 | ...args: readonly PropertyKey[] |
| 447 | ): unknown { |
| 448 | return typeof maybeData === "string" || |
| 449 | typeof maybeData === "number" || |
| 450 | typeof maybeData === "symbol" |
| 451 | ? (data: NonPropertyKey) => propImplementation(data, maybeData, ...args) |
| 452 | : propImplementation(maybeData, ...args); |
| 453 | } |
| 454 | |
| 455 | function propImplementation( |
| 456 | data: NonPropertyKey, |
no test coverage detected
searching dependent graphs…