fedicrawl/application/src/Fediverse/RobotsTxt/RobotsTxt.ts

8 wiersze
370 B
TypeScript
Czysty Zwykły widok Historia

2022-11-22 15:37:11 +00:00
import { AxiosRequestConfig, AxiosResponse } from 'axios'
export default interface RobotsTxt {
2022-11-29 13:11:27 +00:00
isAllowed: (url: URL) => boolean
getIfAllowed: <T = any, R = AxiosResponse<T>, D = any>(url: URL, config?: AxiosRequestConfig<D>) => Promise<R>
postIfAllowed: <T = any, R = AxiosResponse<T>, D = any>(url: URL, data?: D, config?: AxiosRequestConfig<D>) => Promise<R>
2022-11-22 15:37:11 +00:00
}