typescript-poor-man-reflection > "replaceProjectFunctionCall"
● project: Project
Defined in replaceProjectFunctionCall.ts:52
▸ getFullOptions(o: Partial
<ReplaceProjectFunctionCallOptions>): Required
<ReplaceProjectFunctionCallOptions>
Defined in replaceProjectFunctionCall.ts:46
Parameters:
Name | Type |
---|---|
o | Partial <ReplaceProjectFunctionCallOptions> |
Returns: Required
<ReplaceProjectFunctionCallOptions>
▸ 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(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)[]
defaultOptions: object
Defined in replaceProjectFunctionCall.ts:31
● clean: false
= false
Defined in replaceProjectFunctionCall.ts:33
● debug: false
= false
Defined in replaceProjectFunctionCall.ts:39
● extraOptionsHelp: object
Defined in replaceProjectFunctionCall.ts:40
● extractorDataFolderFileName: string
= "poor_man_reflection"
Defined in replaceProjectFunctionCall.ts:37
● extractorDataMode: "prependVariable" = "prependVariable"
Defined in replaceProjectFunctionCall.ts:36
● extractorDataVariableName: string
= "extractor_prepend"
Defined in replaceProjectFunctionCall.ts:35
● extracts: object
= defaultExtractors
Defined in replaceProjectFunctionCall.ts:34
● filePattern: string
= ""
Defined in replaceProjectFunctionCall.ts:38
● help: false
= false
Defined in replaceProjectFunctionCall.ts:41
● moduleSpecifier: string
= "typescript-poor-man-reflection"
Defined in replaceProjectFunctionCall.ts:32
● out: string
= ""
Defined in replaceProjectFunctionCall.ts:42
● tsConfigFilePath: string
= "./tsconfig.json"
Defined in replaceProjectFunctionCall.ts:43