(obj: unknown, prop: T)
| 226 | } |
| 227 | |
| 228 | function hasProp<T extends string>(obj: unknown, prop: T): obj is Record<string, string> { |
| 229 | return !!obj && typeof obj === 'object' && !!(obj as Record<string, string>)[prop]; |
| 230 | } |
| 231 | |
| 232 | function getUrlFromResource(resource: FetchResource): string { |
| 233 | if (typeof resource === 'string') { |
no outgoing calls
no test coverage detected