diff --git a/src/deprecated.ts b/src/deprecated.ts index cd7f6b6b..5bb254d8 100644 --- a/src/deprecated.ts +++ b/src/deprecated.ts @@ -14,9 +14,51 @@ * 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'; +export { + /** + * @deprecated Use `onCLS()` instead. + */ + onCLS as getCLS, +} from './onCLS.js'; + +export { + /** + * @deprecated Use `onFCP()` instead. + */ + onFCP as getFCP, +} from './onFCP.js'; + +export { + /** + * @deprecated Use `onFID()` instead. + */ + onFID as getFID, +} from './onFID.js'; + +export { + /** + * @deprecated Use `onINP()` instead. + */ + onINP as getINP, +} from './onINP.js'; + +export { + /** + * @deprecated Use `onLCP()` instead. + */ + onLCP as getLCP, +} from './onLCP.js'; + +export { + /** + * @deprecated Use `onTTFB()` instead. + */ + onTTFB as getTTFB, +} from './onTTFB.js'; + +export { + /** + * @deprecated Use `ReportCallback` instead. + */ + ReportCallback as ReportHandler, +} from './types.js';