Skip to content

Commit

Permalink
fix: Fix missing type declarations (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhousley authored Oct 25, 2023
1 parent bc4c554 commit c80e8d2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/features/utils/feature-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export class FeatureBase {
constructor (agentIdentifier, aggregator, featureName) {
/** @type {string} */
this.agentIdentifier = agentIdentifier
/** @type {Aggregator} */
/** @type {import('../../common/aggregate/aggregator').Aggregator} */
this.aggregator = aggregator
/** @type {ContextualEE} */
/** @type {import('../../common/event-emitter/contextual-ee').ee} */
this.ee = ee.get(agentIdentifier)
/** @type {string} */
this.featureName = featureName
Expand Down
6 changes: 3 additions & 3 deletions src/features/utils/instrument-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class InstrumentBase extends FeatureBase {
/**
* Instantiate InstrumentBase.
* @param {string} agentIdentifier - The unique ID of the instantiated agent (relative to global scope).
* @param {Aggregator} aggregator - The shared Aggregator that will handle batching and reporting of data.
* @param {import('../../common/aggregate/aggregator').Aggregator} aggregator - The shared Aggregator that will handle batching and reporting of data.
* @param {string} featureName - The name of the feature module (used to construct file path).
* @param {boolean} [auto=true] - Determines whether the feature should automatically register to have the draining
* of its pooled instrumentation data handled by the agent's centralized drain functionality, rather than draining
Expand All @@ -34,7 +34,7 @@ export class InstrumentBase extends FeatureBase {
this.abortHandler = undefined

/**
* @type {Class} Holds the reference to the feature's aggregate module counterpart, if and after it has been initialized. This may not be assigned until after page loads!
* @type {import('./aggregate-base').AggregateBase} Holds the reference to the feature's aggregate module counterpart, if and after it has been initialized. This may not be assigned until after page loads!
* The only purpose of this for now is to expose it to the NREUM interface, as the feature's instrument instance is already exposed.
*/
this.featAggregate = undefined
Expand Down Expand Up @@ -122,7 +122,7 @@ export class InstrumentBase extends FeatureBase {
/**
* Make a determination if an aggregate class should even be imported
* @param {string} featureName
* @param {SessionEntity} session
* @param {import('../../common/session/session-entity').SessionEntity} session
* @returns
*/
shouldImportAgg (featureName, session) {
Expand Down
1 change: 0 additions & 1 deletion tools/test-builds/vite-react-wrapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"build": "tsc && vite build"
},
"devDependencies": {
"@types/node": "^17.0.21",
"@types/react": "*",
"@types/react-dom": "*",
"@vitejs/plugin-react-swc": "3.2.0",
Expand Down
1 change: 0 additions & 1 deletion tools/test-builds/vite-react-wrapper/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"ESNext"
],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
Expand Down

0 comments on commit c80e8d2

Please sign in to comment.