Skip to main content

core.typescriptgeneratoroptions

Home > @medplum/core > TypeScriptGeneratorOptions

TypeScriptGeneratorOptions interface​

Signature:

export interface TypeScriptGeneratorOptions

Properties​

Property

Modifiers

Type

Description

getImportPath?

(typeName: string) => string

(Optional) Returns the module specifier used to import a referenced type. Defaults to a sibling file, e.g. ./Patient.d.ts.

getValueSetValues?

(url: string) => string[] | undefined

(Optional) Returns the codes in a ValueSet, used to narrow bound string properties to a union of string literals. If not provided, or if no codes are returned, bound properties are typed as string.