Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Commit 12c8c6e

Browse files
committed
add export types ActivityEvent, MetricsEvent
1 parent 7a6e123 commit 12c8c6e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { Logs } from './lib/log.js'
33
import { Metrics } from './lib/metrics.js'
44
import { getPaths, getDefaultRootDirs } from './lib/paths.js'
55

6+
export { ActivityEvent } from './lib/activity.js'
7+
export { MetricsEvent } from './lib/metrics.js'
8+
69
export class Core {
710
/**
811
* @param {Object} [options]

lib/activity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AddMetaStream extends Transform {
1818
}
1919
}
2020

21-
class ActivityEvent {
21+
export class ActivityEvent {
2222
/**
2323
* @param {Object} options
2424
* @param {Date} options.timestamp

lib/metrics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { platform } from 'node:os'
1010
import assert from 'node:assert'
1111
import { join } from 'node:path'
1212

13-
class MetricsEvent {
13+
export class MetricsEvent {
1414
/**
1515
* @param {Object} options
1616
* @param {Number} options.totalJobsCompleted

0 commit comments

Comments
 (0)