Skip to content

Commit

Permalink
chore: Remove unused apiSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Jan 8, 2025
1 parent 5c9fc79 commit a36f75a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 32 deletions.
2 changes: 1 addition & 1 deletion app/models/testClasses.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValidPostcode } from "../schemas/apiSchema";
import { ValidPostcode } from './../schemas/calculationSchema';
import { createForecastParameters } from "./ForecastParameters";
import { Household } from "./Household";
import { HouseType, MaintenancePercentage, Property } from "./Property";
Expand Down
30 changes: 0 additions & 30 deletions app/schemas/apiSchema.ts

This file was deleted.

2 changes: 1 addition & 1 deletion app/schemas/calculationSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { HOUSE_TYPES } from "../models/Property";
import { MAINTENANCE_LEVELS } from "../models/constants";

// Type not exported by postcode lib directly
type ValidPostcode = Extract<ReturnType<typeof parsePostcode>, { valid: true }>;
export type ValidPostcode = Extract<ReturnType<typeof parsePostcode>, { valid: true }>;

const HouseTypeEnum = z.enum(HOUSE_TYPES);

Expand Down

0 comments on commit a36f75a

Please sign in to comment.