Skip to content

Commit

Permalink
Merge pull request Expensify#36326 from kubabutkiewicz/ts-migration/c…
Browse files Browse the repository at this point in the history
…onsole-test

[No QA] [TS migration] Migrate 'console.js' test to TypeScript
  • Loading branch information
luacmartins authored Feb 20, 2024
2 parents 7430c5f + e17a5b6 commit 126572d
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
import * as format from './format';

const printRegularLine = (entry) => {
type Entry = {
name: string;
};

type Data = {
significance: Entry[];
meaningless: Entry[];
};

const printRegularLine = (entry: Entry) => {
console.debug(` - ${entry.name}: ${format.formatDurationDiffChange(entry)}`);
};

/**
* Prints the result simply to console.
* @param {Object} data
*/
export default (data) => {
export default (data: Data) => {
// No need to log errors or warnings as these were be logged on the fly
console.debug('');
console.debug('❇️ Performance comparison results:');
Expand Down

0 comments on commit 126572d

Please sign in to comment.