Skip to content

Commit ec7c628

Browse files
committed
fix: Add explicit ProfileTypeSchema type annotation in transformer
1 parent e9f6538 commit ec7c628

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/typeschema/core/transformer.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
type TypeIdentifier,
2525
type TypeSchema,
2626
type ValueSetTypeSchema,
27+
type ProfileTypeSchema,
2728
} from "@typeschema/types";
2829

2930
import { collectBindingSchemas, extractValueSetConceptsByUrl } from "./binding";
@@ -162,7 +163,7 @@ export function transformFhirSchema(register: Register, fhirSchema: RichFHIRSche
162163
const extensions = extractProfileExtensions(register, fhirSchema, logger);
163164
const extensionDeps = extensions?.flatMap(extractExtensionDeps);
164165
const rawDeps = extractProfileDependencies(identifier, base, fields, nested);
165-
const profileSchema = {
166+
const profileSchema: ProfileTypeSchema = {
166167
identifier,
167168
base,
168169
fields,

0 commit comments

Comments
 (0)