Skip to content

Commit

Permalink
Add typings
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Apr 24, 2018
1 parent aa7a922 commit 55f5185
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const GIF_BYTE_THRESHOLD = 100 * 1024;

class EfficientAnimatedContent extends ByteEfficiencyAudit {
/**
* @return {!AuditMeta}
* @return {LH.Audit.Meta}
*/
static get meta() {
return {
Expand All @@ -41,8 +41,8 @@ class EfficientAnimatedContent extends ByteEfficiencyAudit {
}

/**
* @param {!Artifacts} artifacts
* @return {!AuditResult}
* @param {!LH.Artifacts} artifacts
* @return {Promise<LH.Audit.Product>}
*/
static async audit_(artifacts) {
const devtoolsLogs = artifacts.devtoolsLogs[EfficientAnimatedContent.DEFAULT_PASS];
Expand All @@ -54,6 +54,7 @@ class EfficientAnimatedContent extends ByteEfficiencyAudit {
record.resourceSize > GIF_BYTE_THRESHOLD
);

/** @type {Array<{url: string, totalBytes: number, wastedBytes: number}>}*/
const results = unoptimizedContent.map(record => {
return {
url: record.url,
Expand Down

0 comments on commit 55f5185

Please sign in to comment.