Skip to content

Commit

Permalink
use NormalizedId in mock dump
Browse files Browse the repository at this point in the history
  • Loading branch information
PssbleTrngle committed Jan 25, 2024
1 parent 0fc299b commit a8a9b6a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cli/codegen/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ export function generateStubTypes(outputDirectory: string) {
format(
`
import { NormalizedId } from '@pssbletrngle/data-modifier'
declare module '@pssbletrngle/data-modifier/generated' {
export type RegistryId = NormalizedId
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export type InferIds<T extends RegistryId> = NormalizedId
export type ItemId = NormalizedId
Expand All @@ -82,6 +83,8 @@ export function generateStubTypes(outputDirectory: string) {
export type FluidId = NormalizedId
export type RecipeSerializerId = NormalizedId
export type EntityTypeId = NormalizedId
}`,
{ parser: 'typescript' }
)
Expand Down

0 comments on commit a8a9b6a

Please sign in to comment.