Skip to content

Latest commit

 

History

History
226 lines (125 loc) · 6.91 KB

_replaceprojectfunctioncall_.md

File metadata and controls

226 lines (125 loc) · 6.91 KB

typescript-poor-man-reflection > "replaceProjectFunctionCall"

External module: "replaceProjectFunctionCall"

Index

Variables

Functions

Object literals


Variables

<Let> project

● project: Project

Defined in replaceProjectFunctionCall.ts:52


Functions

getFullOptions

getFullOptions(o: Partial<ReplaceProjectFunctionCallOptions>): Required<ReplaceProjectFunctionCallOptions>

Defined in replaceProjectFunctionCall.ts:46

Parameters:

Name Type
o Partial<ReplaceProjectFunctionCallOptions>

Returns: Required<ReplaceProjectFunctionCallOptions>


includeFile

includeFile(f: SourceFile, config: object): boolean

Defined in replaceProjectFunctionCall.ts:13

Knows if a file should be included in the process or not. TODO: memoize

Parameters:

f: SourceFile

config: object

Name Type
Optional extractorDataFolderFileName undefined | string
Optional filePattern undefined | string

Returns: boolean


replaceProjectFunctionCall

replaceProjectFunctionCall(tsConfigFilePath: string, options_: ReplaceProjectFunctionCallOptions, replacements?: (undefined | Replacement)[]): (undefined | Replacement)[]

Defined in replaceProjectFunctionCall.ts:57

Executes the tool on a given TypeScript project in filesystem. See Config documentation.

Parameters:

Name Type Default value
tsConfigFilePath string -
options_ ReplaceProjectFunctionCallOptions -
Default value replacements (undefined | Replacement)[] []

Returns: (undefined | Replacement)[]


Object literals

<Const> defaultOptions

defaultOptions: object

Defined in replaceProjectFunctionCall.ts:31

clean

● clean: false = false

Defined in replaceProjectFunctionCall.ts:33


debug

● debug: false = false

Defined in replaceProjectFunctionCall.ts:39


extraOptionsHelp

● extraOptionsHelp: object

Defined in replaceProjectFunctionCall.ts:40

Type declaration


extractorDataFolderFileName

● extractorDataFolderFileName: string = "poor_man_reflection"

Defined in replaceProjectFunctionCall.ts:37


extractorDataMode

● extractorDataMode: "prependVariable" = "prependVariable"

Defined in replaceProjectFunctionCall.ts:36


extractorDataVariableName

● extractorDataVariableName: string = "extractor_prepend"

Defined in replaceProjectFunctionCall.ts:35


extracts

● extracts: object = defaultExtractors

Defined in replaceProjectFunctionCall.ts:34

Type declaration


filePattern

● filePattern: string = ""

Defined in replaceProjectFunctionCall.ts:38


help

● help: false = false

Defined in replaceProjectFunctionCall.ts:41


moduleSpecifier

● moduleSpecifier: string = "typescript-poor-man-reflection"

Defined in replaceProjectFunctionCall.ts:32


out

● out: string = ""

Defined in replaceProjectFunctionCall.ts:42


tsConfigFilePath

● tsConfigFilePath: string = "./tsconfig.json"

Defined in replaceProjectFunctionCall.ts:43