Skip to content

Commit

Permalink
fix: whoops actually export the utility fns
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouxm committed Oct 13, 2023
1 parent ca8ee51 commit 5485dd9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/soilId/soilIdSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ export const collectionMethods = [
export type SoilPitMethod = (typeof soilPitMethods)[number];
export type CollectionMethod = (typeof collectionMethods)[number];

const methodEnabled = <T extends SoilPitMethod>(method: T): `${T}Enabled` =>
`${method}Enabled`;
export const methodEnabled = <T extends SoilPitMethod>(
method: T,
): `${T}Enabled` => `${method}Enabled`;

const methodRequired = <T extends SoilPitMethod>(method: T): `${T}Required` =>
`${method}Required`;
export const methodRequired = <T extends SoilPitMethod>(
method: T,
): `${T}Required` => `${method}Required`;

export { DepthInterval };
export type LabelledDepthInterval = {
Expand Down

0 comments on commit 5485dd9

Please sign in to comment.