(file: GenFile): Promise<AnalyzedGenResult> file
returns
Promise<AnalyzedGenResult> 36 declarations
(file: GenFile): Promise<AnalyzedGenResult> filePromise<AnalyzedGenResult> (gen_results: GenResults): Promise<AnalyzedGenResult[]> gen_resultsPromise<AnalyzedGenResult[]> AnalyzedGenResult (input_paths: InputPath[], root_dirs: PathId[], config: GroConfig, timings?: Timings | undefined): Promise<FindGenfilesResult> Finds modules from input paths. (see src/lib/input_path.ts for more)
input_pathsInputPath[]root_dirsPathId[]configtimings?Timings | undefinedPromise<FindGenfilesResult> FindGenfilesFailure FindGenfilesResult FoundGenfiles resolved_input_filesArray<ResolvedInputFile>resolved_input_files_by_root_dirMap<PathId, Array<ResolvedInputFile>>resolved_input_pathsArray<ResolvedInputPath>Gen string "gen" GenConfig generatedependenciesGenContext configsvelte_configfilerlogLoggertimingsTimingsinvoke_taskorigin_idSame as import.meta.url but in path form.
PathIdorigin_pathThe origin_id relative to the root dir.
stringchanged_file_idThe file that triggered dependency checking.
Only available when resolving dependencies dynamically.
undefined during actual generation.
PathId | undefinedGenDependencies GenDependenciesConfig patternsArray<RegExp>filesArray<PathId>GenDependenciesResolver GenFile idPathIdcontentstringorigin_idPathIdformatbooleanGenfileModule genGenfileModuleMeta GenfileModuleResult GenfileModuleResultFailure okfalseidPathIdreasonstringerrorErrorelapsednumberGenfileModuleResultSuccess oktrueidPathIdfilesArray<GenFile>elapsednumberGenFunction GenResult origin_idPathIdfilesArray<GenFile>GenResults resultsArray<GenfileModuleResult>successesArray<GenfileModuleResultSuccess>failuresArray<GenfileModuleResultFailure>input_countnumberoutput_countnumberelapsednumber(path: string): boolean pathstringboolean (found_genfiles: FoundGenfiles, timings?: Timings | undefined): Promise<LoadGenfilesResult> found_genfilestimings?Timings | undefinedPromise<LoadGenfilesResult> LoadedGenfiles modulesArray<GenfileModuleMeta>found_genfilesLoadGenfilesFailure LoadGenfilesResult (gen: Gen): GenConfig genGenConfig RawGenFile contentstringfilenamestringformatbooleanRawGenResult (origin_id: PathId, raw_result: RawGenResult): GenResult origin_idPathIdraw_resultGenResult (filename: string): string filenamestringstring (mod: Record<string, any>): mod is GenfileModule modRecord<string, any>boolean (gen_results: GenResults, analyzed_gen_results: AnalyzedGenResult[], log: Logger): Promise<void> gen_resultsanalyzed_gen_resultsAnalyzedGenResult[]logLoggerPromise<void>