Skip to content

Commit

Permalink
stronger typing
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Dec 20, 2024
1 parent 82b2eb2 commit ccc3eed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion paperSpecifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ import type { PaperSpecifications } from './types.js'
export const paperSpecifications = Object.freeze({
...northAmericanPaperSpecifications,
...isoPaperSpecifications
} satisfies Record<string, PaperSpecifications>)
} satisfies Record<Uppercase<string>, PaperSpecifications>)

export type PaperType = NorthAmericanPaperType | IsoPaperType
2 changes: 1 addition & 1 deletion paperSpecifications/iso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const isoPaperSpecifications = Object.freeze({
...aSeriesPaperSpecifications,
...bSeriesPaperSpecifications,
...cSeriesPaperSpecifications
})
} satisfies Record<Uppercase<string>, PaperSpecifications>)

export type IsoPaperType =
| keyof typeof isoPaperSpecifications
Expand Down
2 changes: 1 addition & 1 deletion paperSpecifications/northAmerica.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const northAmericanPaperSpecifications = Object.freeze({
...commonNorthAmericanPaperSpecifications,
...ansiPaperSpecifications,
...archPaperSpecifications
} satisfies Record<string, PaperSpecifications>)
} satisfies Record<Uppercase<string>, PaperSpecifications>)

export type NorthAmericanPaperType =
| keyof typeof northAmericanPaperSpecifications
Expand Down

0 comments on commit ccc3eed

Please sign in to comment.