(obj: T, keys: K[])
| 316 | } |
| 317 | |
| 318 | function pick<T extends object, K extends keyof T>(obj: T, keys: K[]) { |
| 319 | return keys.reduce((res, key) => { |
| 320 | if (key in obj) { |
| 321 | res[key] = obj[key]; |
| 322 | } |
| 323 | return res; |
| 324 | }, {} as Pick<T, K>); |
| 325 | } |
| 326 | |
| 327 | export interface ImageBuildInfo { |
| 328 | user: string; |
no outgoing calls
no test coverage detected