Loader interface
Signature:
export interface Loader<T extends LoaderContext>
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
context | T | null | ||
getCacheAge? | () => number | null | (Optional) For HTTP based loaders, this should return the contents of the "age" header. |
|
getResponseHeader? | (name: string) => string | null | (Optional) | |
stats | LoaderStats |
Methods
Method | Description |
---|---|
abort() | |
destroy() | |
load(context, config, callbacks) |