mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
fix: require getLessons options argument (#24)
This commit is contained in:
parent
d752eed8bd
commit
94524229fc
8 changed files with 47 additions and 108 deletions
|
|
@ -244,7 +244,7 @@ export class BaseClient {
|
|||
* @param options GetLessonsOptions
|
||||
* @returns Array of lessons
|
||||
*/
|
||||
async getLessons(options?: GetLessonsOptions): Promise<LessonsResponse> {
|
||||
async getLessons(options: GetLessonsOptions): Promise<LessonsResponse> {
|
||||
if (!options?.date) throw new Error("No date specified");
|
||||
const params = new URLSearchParams();
|
||||
params.append("date", String(options?.date));
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
export * from "./core/studentClient.js";
|
||||
export * from "./core/parentClient.js";
|
||||
export {
|
||||
export type {
|
||||
Student,
|
||||
ActivityPoint,
|
||||
BehaviourTimelinePoint,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue