Skip to content

Commit

Permalink
fix(education): Allow ReadonlyArray filters (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c authored Jul 16, 2020
1 parent 6a9aa91 commit e185c4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/education/institutions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ interface FilterProps {
*
* Omit this filter to return institutions from all countries.
*/
country?: CountryCode | CountryCode[];
country?: CountryCode | CountryCode[] | ReadonlyArray<CountryCode>;

/**
* Limit institutions to those that offer an education programme that
* corresponds to at least one of the specified ISCED 2011 levels.
*
* Omit this filter to return institutions regardless of education level.
*/
level?: EducationLevel | EducationLevel[];
level?: EducationLevel | EducationLevel[] | ReadonlyArray<EducationLevel>;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/education/qualifications/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ interface FilterProps {
*
* Omit this filter to return qualifications from all countries.
*/
country?: CountryCode | CountryCode[];
country?: CountryCode | CountryCode[] | ReadonlyArray<CountryCode>;

/**
* Limit qualifications to those that correspond to at least one of the
* specified ISCED 2011 levels.
*
* Omit this filter to return qualifications regardless of education level.
*/
level?: EducationLevel | EducationLevel[];
level?: EducationLevel | EducationLevel[] | ReadonlyArray<EducationLevel>;
}

/**
Expand Down

0 comments on commit e185c4c

Please sign in to comment.