@@ -40,14 +40,12 @@ export function mergePropertiesWithOverwrite(
4040 * @param options - Marker options excluding dataType
4141 * @returns Complete marker payload
4242 * @example
43- * ```ts
4443 * const payload = markerPayload({
4544 * color: 'primary',
4645 * tooltipText: 'User action completed',
4746 * properties: [['action', 'save'], ['duration', 150]]
4847 * });
4948 * // { dataType: 'marker', color: 'primary', tooltipText: 'User action completed', ... }
50- * ```
5149 */
5250export function markerPayload ( options ?: Omit < MarkerPayload , 'dataType' > ) {
5351 return {
@@ -61,7 +59,6 @@ export function markerPayload(options?: Omit<MarkerPayload, 'dataType'>) {
6159 * @param options - Track entry options excluding dataType
6260 * @returns Complete track entry payload
6361 * @example
64- * ```ts
6562 * const payload = trackEntryPayload({
6663 * track: 'user-interactions',
6764 * trackGroup: 'frontend',
@@ -70,7 +67,6 @@ export function markerPayload(options?: Omit<MarkerPayload, 'dataType'>) {
7067 * properties: [['element', 'save-button'], ['response-time', 200]]
7168 * });
7269 * // { dataType: 'track-entry', track: 'user-interactions', ... }
73- * ```
7470 */
7571export function trackEntryPayload (
7672 options : Omit < TrackEntryPayload , 'dataType' > ,
@@ -205,7 +201,6 @@ export function errorToMarkerPayload(
205201 * @param devtools - DevTools payload or null
206202 * @returns Performance API options with DevTools detail
207203 * @example
208- * ```ts
209204 * const marker = markerPayload({ color: 'primary', tooltipText: 'Start' });
210205 * performance.mark('start', asOptions(marker));
211206 *
@@ -215,7 +210,6 @@ export function errorToMarkerPayload(
215210 * end: 'end',
216211 * ...asOptions(trackEntry)
217212 * });
218- * ```
219213 */
220214export function asOptions < T extends MarkerPayload > (
221215 devtools ?: T | null ,
@@ -307,13 +301,11 @@ type MergeResult<P extends readonly unknown[]> = P extends readonly [
307301 * @param parts - Array of payloads where first is complete and rest are partial
308302 * @returns Merged payload with combined properties
309303 * @example
310- * ```ts
311304 * const payload = mergeDevtoolsPayload(
312305 * trackEntryPayload({ track: 'user-interactions', color: 'secondary' }),
313306 * { color: 'primary', tooltipText: 'User action completed' },
314307 * );
315308 * // { track: 'user-interactions', color: 'primary', tooltipText: 'User action completed' }
316- * ```
317309 */
318310export function mergeDevtoolsPayload <
319311 const P extends readonly [
@@ -420,7 +412,6 @@ export type MeasureCtxOptions = ActionTrackEntryPayload & {
420412 * @param cfg - Configuration defining default track properties, optional prefix, and global error handling
421413 * @returns Function that creates measurement controllers for specific events
422414 * @example
423- * ```ts
424415 * // Basic usage with defaults
425416 * const measure = measureCtx({
426417 * track: 'api-calls',
@@ -432,9 +423,7 @@ export type MeasureCtxOptions = ActionTrackEntryPayload & {
432423 * start(); // Creates "fetch-user:start" mark
433424 * // ... async operation ...
434425 * success({ userCount: 42 }); // Creates "fetch-user:end" mark and "fetch-user" measure
435- * ```
436426 * @example
437- * ```ts
438427 * // Advanced usage with callbacks and error handling
439428 * const measure = measureCtx({
440429 * track: 'user-actions',
@@ -461,9 +450,7 @@ export type MeasureCtxOptions = ActionTrackEntryPayload & {
461450 * } catch (err) {
462451 * error(err); // Applies both global and specific error metadata
463452 * }
464- * ```
465453 * @example
466- * ```ts
467454 * // onetime config of defaults
468455 * const apiMeasure = measureCtx({
469456 * prefix: 'http:',
@@ -480,8 +467,6 @@ export type MeasureCtxOptions = ActionTrackEntryPayload & {
480467 * } catch(err) {
481468 * error(err)
482469 * }
483- *
484- * ```
485470 * @returns Object with measurement control methods:
486471 * - `start()`: Marks the beginning of the measurement
487472 * - `success(result?)`: Completes successful measurement with optional result metadata
0 commit comments