@ng-doc/builder / Function

createCache

Creates cache for given files, returns object with file path as key and md5 hash as value

Presentation

function createCache(
  version?: string | undefined,
  files?: string[] | undefined,
  data?: Record<string, unknown> | undefined,
  result?: string | undefined,
): NgDocCachedData<unknown>;

Returns

Parameters

NameTypeDescription
version
string | undefined

@param version - version of the current package

files
string[] | undefined

@param files - list of files, for which cache should be created

data
Record<string, unknown> | undefined

@param data - properties, which should be cached

result
string | undefined

@param result - result of the builder, which should be cached