(source: any)
| 41 | /\.(bmp|jpg|jpeg|png|gif|svg)$/.test(source))); |
| 42 | |
| 43 | const getIconId = (source: any) => { |
| 44 | if ( |
| 45 | typeof source === 'object' && |
| 46 | source !== null && |
| 47 | Object.prototype.hasOwnProperty.call(source, 'uri') && |
| 48 | typeof source.uri === 'string' |
| 49 | ) { |
| 50 | return source.uri; |
| 51 | } |
| 52 | |
| 53 | return source; |
| 54 | }; |
| 55 | |
| 56 | export const isValidIcon = (source: any) => |
| 57 | typeof source === 'string' || |
no outgoing calls
no test coverage detected
searching dependent graphs…