Skip to content

Commit

Permalink
fix: fix types files not export
Browse files Browse the repository at this point in the history
  • Loading branch information
Jungley8 committed May 15, 2023
1 parent 0f4c9b1 commit 27352c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.0.0-development",
"description": "Integrating OpenAI Billing API with TypeScript and Axios",
"main": "./lib/index.js",
"types": "./types/index.d.ts",
"files": [
"lib/**/*",
"types/*"
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { CreditSummary } from '../types/credit-summary';
import { DailyCostsList } from '../types/usage';
import { Config, DataOrError } from '../types/billing-api';

export * from '../types';

const erorrHandler = (error: AxiosError) => {
if (error.response) {
const statusCode = error.response.status;
Expand Down

0 comments on commit 27352c6

Please sign in to comment.