diff --git a/index.d.ts b/index.d.ts index 0cf4313..8d02a2d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,3 @@ -declare module 'robots-parser'; - interface Robot { isAllowed(url: string, ua?: string): boolean | undefined; isDisallowed(url: string, ua?: string): boolean | undefined; @@ -10,4 +8,6 @@ interface Robot { getPreferredHost(): string | null; } -export default function robotsParser(url: string, robotstxt: string): Robot; +declare function robotsParser(url: string, robotstxt: string): Robot; + +export = robotsParser;