1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00

feat: i know how to use optional arguments

This commit is contained in:
James Cook 2021-11-23 22:23:23 +00:00
parent d0ed8b1cd7
commit 0f8f0a5027
23 changed files with 110 additions and 82 deletions

10
src/types.d.ts vendored
View file

@ -37,8 +37,8 @@ export interface Student {
detention_alias_plural_uc: string
}
export interface GetActivityOptions {
from: string | undefined
to: string | undefined
from?: string
to?: string
}
export interface ActivityTimelinePoint {
positive: number
@ -57,9 +57,9 @@ export interface ActivityResponse {
other_negative_count: Array<any>
}
export interface GetBehaviourOptions {
from: string | undefined
to: string | undefined
last_id: string | undefined
from?: string
to?: string
last_id?: string
}
export interface BehaviourPoint {
id: number