Skip to main content
Version: 5.9

TsMorphMetadataProvider

Hierarchy

Index

Constructors

constructor

Methods

getExistingSourceFile

  • getExistingSourceFile(path, ext, validate): Promise<SourceFile>
  • Parameters

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

    Returns Promise<SourceFile>

loadEntityMetadata

  • loadEntityMetadata(meta, name): Promise<void>
  • Parameters

    Returns Promise<void>

loadFromCache

  • loadFromCache(meta, cache): void
  • Re-hydrates missing attributes like customType (functions/instances are lost when caching to JSON)


    Parameters

    Returns void

useCache

  • useCache(): boolean
  • Returns boolean