Skip to content

Commit

Permalink
Update aliasing method
Browse files Browse the repository at this point in the history
  • Loading branch information
philipwalton committed May 11, 2022
1 parent a2be1f0 commit 378e1fb
Showing 1 changed file with 42 additions and 36 deletions.
78 changes: 42 additions & 36 deletions src/deprecated.ts
Expand Up @@ -14,45 +14,51 @@
* limitations under the License.
*/

import {onCLS} from './onCLS.js';
import {onFCP} from './onFCP.js';
import {onFID} from './onFID.js';
import {onINP} from './onINP.js';
import {onLCP} from './onLCP.js';
import {onTTFB} from './onTTFB.js';
import {ReportCallback} from './types.js';
export {
/**
* @deprecated Use `onFCP()` instead.
*/
onFCP as getFCP,
} from './onFCP.js';

/**
* @deprecated Use `onCLS()` instead.
*/
export const getCLS = onCLS;

/**
* @deprecated Use `onFCP()` instead.
*/
export const getFCP = onFCP;
export {
/**
* @deprecated Use `onFID()` instead.
*/
onFID as getFID,
} from './onFID.js';

/**
* @deprecated Use `onFID()` instead.
*/
export const getFID = onFID;
export {
/**
* @deprecated Use `onCLS()` instead.
*/
onCLS as getCLS,
} from './onCLS.js';

/**
* @deprecated Use `onINP()` instead.
*/
export const getINP = onINP;
export {
/**
* @deprecated Use `onINP()` instead.
*/
onINP as getINP,
} from './onINP.js';

/**
* @deprecated Use `onLCP()` instead.
*/
export const getLCP = onLCP;
export {
/**
* @deprecated Use `onLCP()` instead.
*/
onLCP as getLCP,
} from './onLCP.js';

/**
* @deprecated Use `onTTFB()` instead.
*/
export const getTTFB = onTTFB;
export {
/**
* @deprecated Use `onTTFB()` instead.
*/
onTTFB as getTTFB,
} from './onTTFB.js';

/**
* @deprecated Use `ReportCallback` instead.
*/
export type ReportHandler = ReportCallback;
export {
/**
* @deprecated Use `ReportCallback` instead.
*/
ReportCallback as ReportHandler,
} from './types.js';

0 comments on commit 378e1fb

Please sign in to comment.