diff --git a/src/index.ts b/src/index.ts index 7300234..17796e6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import request from 'request'; +import * as request from 'request'; import { TRouteConfigs, parseRequestOptions } from './api_handler/parse_request_options'; import { handleRequest } from './api_handler/requests_handler'; import { INITIAL_CONFIGS, TAuthData, TRequestConfigs, TTicktickConfigs } from './configs'; diff --git a/tsconfig.json b/tsconfig.json index dc37865..0dcb8f4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "strict": true, "skipLibCheck": true, "declaration": true, - "allowSyntheticDefaultImports": true + "esModuleInterop": true }, "include": ["src"] }