From ea72bb0afe2346bd9680edecbe53c7d08fc35b1e Mon Sep 17 00:00:00 2001 From: James Cook Date: Tue, 23 Nov 2021 23:04:26 +0000 Subject: [PATCH] fix: types --- package.json | 5 +++-- src/api.ts | 2 +- src/client.ts | 2 +- src/types.d.ts => types.d.ts | 0 4 files changed, 5 insertions(+), 4 deletions(-) rename src/types.d.ts => types.d.ts (100%) diff --git a/package.json b/package.json index 84a0b14..8cd040f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "classcharts-api", - "version": "0.0.5", + "version": "0.0.6", "description": "", "repository": { "url": "https://github.com/jamesatjaminit/classcharts-api" @@ -17,7 +17,8 @@ "undici": "^4.9.2" }, "files": [ - "dist/**" + "dist/**", + "types.d.ts" ], "devDependencies": { "@types/node": "^16.11.6", diff --git a/src/api.ts b/src/api.ts index bfdbce9..2305564 100644 --- a/src/api.ts +++ b/src/api.ts @@ -13,7 +13,7 @@ import { HomeworksResponse, LessonsResponse, Student, -} from './types' +} from '../types' export async function getStudentInfo( studentCode: string, dateOfBirth?: string diff --git a/src/client.ts b/src/client.ts index 38f7c5a..f23ed21 100644 --- a/src/client.ts +++ b/src/client.ts @@ -11,7 +11,7 @@ import { HomeworksResponse, LessonsResponse, Student, -} from './types' +} from '../types' import { API_BASE, BASE_URL } from './consts' /** * The base client diff --git a/src/types.d.ts b/types.d.ts similarity index 100% rename from src/types.d.ts rename to types.d.ts