Skip to content

Commit

Permalink
Ensure all deprecated symbols are annotated
Browse files Browse the repository at this point in the history
  • Loading branch information
philipwalton committed May 11, 2022
1 parent 4a3465f commit a2be1f0
Showing 1 changed file with 42 additions and 6 deletions.
48 changes: 42 additions & 6 deletions src/deprecated.ts
Expand Up @@ -14,9 +14,45 @@
* limitations under the License.
*/

export {onCLS as getCLS} from './onCLS.js';
export {onFCP as getFCP} from './onFCP.js';
export {onFID as getFID} from './onFID.js';
export {onINP as getINP} from './onINP.js';
export {onLCP as getLCP} from './onLCP.js';
export {onTTFB as getTTFB} from './onTTFB.js';
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';

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

/**
* @deprecated Use `onFCP()` instead.
*/
export const getFCP = onFCP;

/**
* @deprecated Use `onFID()` instead.
*/
export const getFID = onFID;

/**
* @deprecated Use `onINP()` instead.
*/
export const getINP = onINP;

/**
* @deprecated Use `onLCP()` instead.
*/
export const getLCP = onLCP;

/**
* @deprecated Use `onTTFB()` instead.
*/
export const getTTFB = onTTFB;

/**
* @deprecated Use `ReportCallback` instead.
*/
export type ReportHandler = ReportCallback;

0 comments on commit a2be1f0

Please sign in to comment.