mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs: replace @return with @returns (#6006)
The former is not understood by TSDoc.
This commit is contained in:
@@ -33,7 +33,7 @@ const GoldenComparators = {
|
||||
* @param {?Object} actualBuffer
|
||||
* @param {!Buffer} expectedBuffer
|
||||
* @param {!string} mimeType
|
||||
* @return {?{diff: (!Object:undefined), errorMessage: (string|undefined)}}
|
||||
* @returns {?{diff: (!Object:undefined), errorMessage: (string|undefined)}}
|
||||
*/
|
||||
function compareImages(actualBuffer, expectedBuffer, mimeType) {
|
||||
if (!actualBuffer || !(actualBuffer instanceof Buffer))
|
||||
@@ -67,7 +67,7 @@ function compareImages(actualBuffer, expectedBuffer, mimeType) {
|
||||
/**
|
||||
* @param {?Object} actual
|
||||
* @param {!Buffer} expectedBuffer
|
||||
* @return {?{diff: (!Object:undefined), errorMessage: (string|undefined)}}
|
||||
* @returns {?{diff: (!Object:undefined), errorMessage: (string|undefined)}}
|
||||
*/
|
||||
function compareText(actual, expectedBuffer) {
|
||||
if (typeof actual !== 'string')
|
||||
@@ -89,7 +89,7 @@ function compareText(actual, expectedBuffer) {
|
||||
/**
|
||||
* @param {?Object} actual
|
||||
* @param {string} goldenName
|
||||
* @return {!{pass: boolean, message: (undefined|string)}}
|
||||
* @returns {!{pass: boolean, message: (undefined|string)}}
|
||||
*/
|
||||
function compare(goldenPath, outputPath, actual, goldenName) {
|
||||
goldenPath = path.normalize(goldenPath);
|
||||
@@ -149,7 +149,7 @@ function compare(goldenPath, outputPath, actual, goldenName) {
|
||||
* @param {string} filePath
|
||||
* @param {string} suffix
|
||||
* @param {string=} customExtension
|
||||
* @return {string}
|
||||
* @returns {string}
|
||||
*/
|
||||
function addSuffix(filePath, suffix, customExtension) {
|
||||
const dirname = path.dirname(filePath);
|
||||
|
||||
Reference in New Issue
Block a user