From a8a9b6aa548e1e6420e397fdc72122bc84fcd446 Mon Sep 17 00:00:00 2001 From: Niklas Widmann Date: Thu, 25 Jan 2024 13:54:32 +0100 Subject: [PATCH] use NormalizedId in mock dump --- src/cli/codegen/registry.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cli/codegen/registry.ts b/src/cli/codegen/registry.ts index 802cc96..9462e94 100644 --- a/src/cli/codegen/registry.ts +++ b/src/cli/codegen/registry.ts @@ -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 = NormalizedId export type ItemId = NormalizedId @@ -82,6 +83,8 @@ export function generateStubTypes(outputDirectory: string) { export type FluidId = NormalizedId export type RecipeSerializerId = NormalizedId + + export type EntityTypeId = NormalizedId }`, { parser: 'typescript' } )