files
Variable: files
Section titled “Variable: files”const files: object;Type declaration
Section titled “Type declaration”getFileType()
Section titled “getFileType()”getFileType: (url) => "JS" | "CSS" | "Unknown";Gets the file type from a URL.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
url | any |
Returns
Section titled “Returns”"JS" | "CSS" | "Unknown"
“JS”, “CSS”, or “Unknown”
loadFile()
Section titled “loadFile()”loadFile: (file) => Promise<unknown>;Loads a single JS or CSS file.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
file | any |
Returns
Section titled “Returns”Promise<unknown>
loadFiles()
Section titled “loadFiles()”loadFiles: (files) => Promise<any[]>;Loads multiple files (JS or CSS).
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
files | any |
Returns
Section titled “Returns”Promise<any[]>