-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4bedcea
commit 0d459ac
Showing
7 changed files
with
98 additions
and
115 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* This file contains all type definitions that are purely for documentation purposes. | ||
*/ | ||
|
||
/** | ||
* Options used when loading a path. | ||
* | ||
* @typedef {object} LoadOptions | ||
* | ||
* @property {string} [encoding='utf-8'] - The encoding to use when loading the file *(File loader only)* | ||
* @property {string} [method=get] - The HTTP method to use for the request *(HTTP loader only)* | ||
* @property {module:path-loader~PrepareRequestCallback} [prepareRequest] - The callback used to prepare the request *(HTTP loader only)* | ||
* @property {module:path-loader~ProcessResponseCallback} [processContent] - The callback used to process the response | ||
*/ | ||
|
||
/** | ||
* Callback used to provide access to altering a remote request prior to the request being made. | ||
* | ||
* @callback PrepareRequestCallback | ||
* | ||
* @param {object} req - The Superagent request object | ||
* @param {string} location - The location being retrieved | ||
* @param {function} callback - First callback | ||
*/ | ||
|
||
/** | ||
* Callback used to provide access to processing the raw response of the request being made. *(HTTP loader only)* | ||
* | ||
* @callback ProcessResponseCallback | ||
* | ||
* @param {object} res - The Superagent response object *(For non-HTTP loaders, this object will be like the Superagent | ||
* object in that it will have a `text` property whose value is the raw string value being processed. This was done | ||
* for consistency.)* | ||
* @param {function} callback - Error-first callback | ||
* | ||
* @returns {*} the result of processing the responsexs | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters