(_: T, property: P)
| 66 | |
| 67 | type AllPropertyNames<X> = keyof UnionToIntersection<X> |
| 68 | function hasField<T extends {}, P extends AllPropertyNames<T>>(_: T, property: P): _ is T & Record<P, any> { |
| 69 | return _.hasOwnProperty(property) |
| 70 | } |
| 71 | |
| 72 | // function withField<T extends {}, P extends AllPropertyNames<T>>( |
| 73 | // _: T, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…