FileOptions Type — astro Architecture
Architecture documentation for the FileOptions type/interface in file.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD ac37daa2_7b3c_e5f2_9997_cb55ad2288ae["FileOptions"] 7fd49d85_29da_fb8a_f2fc_3479c947eee8["file.ts"] ac37daa2_7b3c_e5f2_9997_cb55ad2288ae -->|defined in| 7fd49d85_29da_fb8a_f2fc_3479c947eee8 style ac37daa2_7b3c_e5f2_9997_cb55ad2288ae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/loaders/file.ts lines 12–18
interface FileOptions {
/**
* the parsing function to use for this data
* @default JSON.parse or yaml.load, depending on the extension of the file
* */
parser?: (text: string) => Promise<ParserOutput> | ParserOutput;
}
Defined In
Source
Frequently Asked Questions
What is the FileOptions type?
FileOptions is a type/interface in the astro codebase, defined in packages/astro/src/content/loaders/file.ts.
Where is FileOptions defined?
FileOptions is defined in packages/astro/src/content/loaders/file.ts at line 12.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free