fix(utils): tighten ofsted_grade type in buildOfstedListBadge
This commit is contained in:
@@ -588,7 +588,7 @@ export interface OfstedListBadge {
|
||||
* - No inspection: "Not yet inspected" in grey
|
||||
*/
|
||||
export function buildOfstedListBadge(school: {
|
||||
ofsted_grade?: number | null;
|
||||
ofsted_grade?: 1 | 2 | 3 | 4 | null;
|
||||
ofsted_date?: string | null;
|
||||
ofsted_framework?: string | null;
|
||||
}): OfstedListBadge {
|
||||
|
||||
Reference in New Issue
Block a user