Skip to content

Commit

Permalink
fix: added missing exports for errors for better use
Browse files Browse the repository at this point in the history
  • Loading branch information
SachsenspieltCoding committed Jan 9, 2024
1 parent 6fc6288 commit 40e70ed
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import { AxiosRequestConfig } from 'axios';
import { XMLParser } from 'fast-xml-parser';
import { Credentials, IndiwareAPI } from './api/index.js';
import { IndiwareAPIEndpoints } from './api/routes.js';
import { PlanNotFoundError, RequestFailedError } from './errors/index.js';
import {
PlanNotFoundError,
RequestFailedError,
SchoolnumberUnallowedCharsError,
SchoolnumberWrongLengthError,
} from './errors/index.js';
import { Course } from './interface/course.js';
import { Lesson } from './interface/lesson.js';
import { PlannedLesson } from './interface/plannedLesson.js';
Expand Down Expand Up @@ -159,3 +164,11 @@ export {
SchoolClassParser,
SubstitutionPlanParser,
};

// Export all errors
export {
PlanNotFoundError,
RequestFailedError,
SchoolnumberUnallowedCharsError,
SchoolnumberWrongLengthError,
};

0 comments on commit 40e70ed

Please sign in to comment.