Skip to content

Commit

Permalink
change types ext
Browse files Browse the repository at this point in the history
  • Loading branch information
KadoBOT committed Jan 15, 2020
1 parent e5d4d72 commit a3ebb01
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adyen/api-library",
"version": "2.2.1-rc.1",
"version": "2.2.1-rc.2",
"description": "The Adyen API Library for NodeJS enables you to work with Adyen APIs.",
"main": "dist/lib/src/index.js",
"types": "dist/lib/src/index.d.ts",
Expand Down
20 changes: 20 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/// <reference path="typings/amount.ts" />
/// <reference path="typings/apiError.ts" />
/// <reference path="typings/applicationInfo.ts" />
/// <reference path="typings/binLookup.ts" />
/// <reference path="typings/checkout.ts" />
/// <reference path="typings/checkoutUtility.ts" />
/// <reference path="typings/enums/environment.ts" />
/// <reference path="typings/enums/vatCategory.ts" />
/// <reference path="typings/marketPayAccount.ts" />
/// <reference path="typings/marketPayFund.ts" />
/// <reference path="typings/marketPayHostedOnboardingPage.ts" />
/// <reference path="typings/marketPayNotificationConfiguration.ts" />
/// <reference path="typings/marketPayNotifications.ts" />
/// <reference path="typings/nexo.ts" />
/// <reference path="typings/notification.ts" />
/// <reference path="typings/payments.ts" />
/// <reference path="typings/payouts.ts" />
/// <reference path="typings/recurring.ts" />
/// <reference path="typings/requestOptions.ts" />
/// <reference path="typings/terminal.ts" />
22 changes: 22 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,28 @@
* See the LICENSE file for more info.
*/

/* eslint-disable @typescript-eslint/triple-slash-reference */
/// <reference path="typings/amount.ts" />
/// <reference path="typings/apiError.ts" />
/// <reference path="typings/applicationInfo.ts" />
/// <reference path="typings/binLookup.ts" />
/// <reference path="typings/checkout.ts" />
/// <reference path="typings/checkoutUtility.ts" />
/// <reference path="typings/enums/environment.ts" />
/// <reference path="typings/enums/vatCategory.ts" />
/// <reference path="typings/marketPayAccount.ts" />
/// <reference path="typings/marketPayFund.ts" />
/// <reference path="typings/marketPayHostedOnboardingPage.ts" />
/// <reference path="typings/marketPayNotificationConfiguration.ts" />
/// <reference path="typings/marketPayNotifications.ts" />
/// <reference path="typings/nexo.ts" />
/// <reference path="typings/notification.ts" />
/// <reference path="typings/payments.ts" />
/// <reference path="typings/payouts.ts" />
/// <reference path="typings/recurring.ts" />
/// <reference path="typings/requestOptions.ts" />
/// <reference path="typings/terminal.ts" />

export { default as Client } from "./client";
export { default as Config } from "./config";
export * from "./services/";
Expand Down
18 changes: 0 additions & 18 deletions src/typings/index.d.ts

This file was deleted.

5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"baseUrl": "./src",
"outDir": "./dist/lib",
"module": "commonjs",
"target": "es5",
Expand All @@ -19,12 +20,12 @@
"strict": true,
"noUnusedLocals": true,
"suppressImplicitAnyIndexErrors": true,
"typeRoots": ["src/typings/", "node_modules/@types"],
"typeRoots": ["src/typings", "node_modules/@types"],
"types": ["node", "jest"]
},
"include": ["src"],
"exclude": ["node_modules"],
"files": [
"src/typings/index.d.ts"
"src/index.d.ts"
]
}

0 comments on commit a3ebb01

Please sign in to comment.