diff --git a/src/deprecated.ts b/src/deprecated.ts index cd7f6b6b..4e3aeb2a 100644 --- a/src/deprecated.ts +++ b/src/deprecated.ts @@ -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;