fix(utils): tighten ofsted_grade type in buildOfstedListBadge

This commit is contained in:
Tudor Sitaru
2026-04-13 13:56:58 +01:00
parent 8a6758b591
commit 9ebb421307
+1 -1
View File
@@ -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 {