Skip to main content
Version: Next

TsMorphMetadataProvider

Metadata provider that uses ts-morph to infer property types from TypeScript source files or declaration files.

Hierarchy

Index

Constructors

constructor

Methods

inheritedcombineCache

  • combineCache(): void
  • Combines individual metadata cache entries into a single file.


    Returns void

inheritedgetCachedMetadata

getCacheKey

  • getCacheKey(meta): string
  • Returns the cache key for the given entity metadata.


    Parameters

    Returns string

getExistingSourceFile

  • getExistingSourceFile(path, ext, validate): SourceFile
  • Parameters

    • path: string
    • optionalext: string
    • validate: boolean = true

    Returns SourceFile

loadEntityMetadata

  • loadEntityMetadata(meta): void
  • Resolves entity references and type information for all properties in the given metadata.


    Parameters

    Returns void

inheritedloadFromCache

  • loadFromCache(meta, cache): void

saveToCache

  • saveToCache(meta): void

useCache

  • useCache(): boolean
  • Whether metadata caching is enabled for this instance.


    Returns boolean

staticuseCache

  • useCache(): boolean
  • Whether this provider class uses metadata caching by default.


    Returns boolean