Skip to content

Commit fb7498d

Browse files
Initiated class in proxy, uniformized @returns
1 parent 79dbee8 commit fb7498d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

index.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Encore {
4343
* to the directory where your package.json lives.
4444
*
4545
* @param {string} outputPath
46-
* @return {Encore}
46+
* @returns {Encore}
4747
*/
4848
setOutputPath(outputPath) {
4949
webpackConfig.setOutputPath(outputPath);
@@ -67,7 +67,7 @@ class Encore {
6767
* .setManifestKeyPrefix('/build')
6868
*
6969
* @param {string} publicPath
70-
* @return {Encore}
70+
* @returns {Encore}
7171
*/
7272
setPublicPath(publicPath) {
7373
webpackConfig.setPublicPath(publicPath);
@@ -96,7 +96,7 @@ class Encore {
9696
* }
9797
*
9898
* @param {string} manifestKeyPrefix
99-
* @return {Encore}
99+
* @returns {Encore}
100100
*/
101101
setManifestKeyPrefix(manifestKeyPrefix) {
102102
webpackConfig.setManifestKeyPrefix(manifestKeyPrefix);
@@ -294,7 +294,7 @@ class Encore {
294294
*
295295
* @param {string} plugin
296296
* @param {number} priority
297-
* @return {exports}
297+
* @returns {Encore}
298298
*/
299299
addPlugin(plugin, priority = 0) {
300300
webpackConfig.addPlugin(plugin, priority);
@@ -411,7 +411,7 @@ class Encore {
411411
*
412412
* @param {string} name The chunk name (e.g. vendor to create a vendor.js)
413413
* @param {Array} files Array of files to put in the vendor entry
414-
* @return {exports}
414+
* @returns {Encore}
415415
*/
416416
createSharedEntry(name, files) {
417417
webpackConfig.createSharedEntry(name, files);
@@ -437,7 +437,7 @@ class Encore {
437437
* expect jQuery (or something else) to be a global variable.
438438
*
439439
* @param {Array} variables
440-
* @return {exports}
440+
* @returns {Encore}
441441
*/
442442
autoProvideVariables(variables) {
443443
webpackConfig.autoProvideVariables(variables);
@@ -453,7 +453,7 @@ class Encore {
453453
* jQuery: 'jquery'
454454
* });
455455
*
456-
* @return {exports}
456+
* @returns {Encore}
457457
*/
458458
autoProvidejQuery() {
459459
webpackConfig.autoProvidejQuery();
@@ -478,7 +478,7 @@ class Encore {
478478
* })
479479
*
480480
* @param {function} postCssLoaderOptionsCallback
481-
* @return {exports}
481+
* @returns {Encore}
482482
*/
483483
enablePostCssLoader(postCssLoaderOptionsCallback = () => {}) {
484484
webpackConfig.enablePostCssLoader(postCssLoaderOptionsCallback);
@@ -512,7 +512,7 @@ class Encore {
512512
*
513513
* @param {function} sassLoaderOptionsCallback
514514
* @param {object} encoreOptions
515-
* @return {exports}
515+
* @returns {Encore}
516516
*/
517517
enableSassLoader(sassLoaderOptionsCallback = () => {}, encoreOptions = {}) {
518518
webpackConfig.enableSassLoader(sassLoaderOptionsCallback, encoreOptions);
@@ -534,7 +534,7 @@ class Encore {
534534
* });
535535
*
536536
* @param {function} lessLoaderOptionsCallback
537-
* @return {exports}
537+
* @returns {Encore}
538538
*/
539539
enableLessLoader(lessLoaderOptionsCallback = () => {}) {
540540
webpackConfig.enableLessLoader(lessLoaderOptionsCallback);
@@ -555,7 +555,7 @@ class Encore {
555555
* });
556556
*
557557
* @param {function} stylusLoaderOptionsCallback
558-
* @return {exports}
558+
* @returns {Encore}
559559
*/
560560
enableStylusLoader(stylusLoaderOptionsCallback = () => {}) {
561561
webpackConfig.enableStylusLoader(stylusLoaderOptionsCallback);
@@ -573,7 +573,7 @@ class Encore {
573573
* });
574574
*
575575
* @param {function} callback
576-
* @return {exports}
576+
* @returns {Encore}
577577
*/
578578
configureBabel(callback) {
579579
webpackConfig.configureBabel(callback);
@@ -627,7 +627,7 @@ class Encore {
627627
* });
628628
*
629629
* @param {function} callback
630-
* @return {exports}
630+
* @returns {Encore}
631631
*/
632632
enableTypeScriptLoader(callback = () => {}) {
633633
webpackConfig.enableTypeScriptLoader(callback);
@@ -648,7 +648,7 @@ class Encore {
648648
* });
649649
*
650650
* @param {function} callback
651-
* @return {exports}
651+
* @returns {Encore}
652652
*/
653653
enableCoffeeScriptLoader(callback = () => {}) {
654654
webpackConfig.enableCoffeeScriptLoader(callback);
@@ -663,7 +663,7 @@ class Encore {
663663
* This is a build optimization API to reduce build times.
664664
*
665665
* @param {function} forkedTypeScriptTypesCheckOptionsCallback
666-
* @return {exports}
666+
* @returns {Encore}
667667
*/
668668
enableForkedTypeScriptTypesChecking(forkedTypeScriptTypesCheckOptionsCallback = () => {}) {
669669
webpackConfig.enableForkedTypeScriptTypesChecking(
@@ -884,7 +884,7 @@ class Encore {
884884

885885
// Proxy the API in order to prevent calls to most of its methods
886886
// if the webpackConfig object hasn't been initialized yet.
887-
const EncoreProxy = new Proxy(Encore, {
887+
const EncoreProxy = new Proxy(new Encore(), {
888888
get: (target, prop) => {
889889
if (prop === '__esModule') {
890890
// When using Babel to preprocess a webpack.config.babel.js file

0 commit comments

Comments
 (0)