(arg: any)
| 222 | } |
| 223 | |
| 224 | export const _isBaseDocumentLoader = (arg: any): arg is BaseDocumentLoader => { |
| 225 | if ('load' in arg && typeof arg.load === 'function' && 'loadAndSplit' in arg && typeof arg.loadAndSplit === 'function') { |
| 226 | return true |
| 227 | } |
| 228 | return false |
| 229 | } |
| 230 | |
| 231 | interface IndexArgs { |
| 232 | docsSource: BaseDocumentLoader | DocumentInterface[] |