Skip to content

Commit

Permalink
make track function optional in typescript as well
Browse files Browse the repository at this point in the history
  • Loading branch information
paed01 committed Nov 13, 2023
1 parent 5a4eb4b commit 3ce08d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@0dep/pino-applicationinsights",
"version": "0.1.0",
"version": "0.1.1",
"description": "Pino applicationinsights transport",
"type": "module",
"module": "./src/index.js",
Expand Down
6 changes: 4 additions & 2 deletions types/interfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ export interface ComposeConfig extends TelemetryTransformationConfig {
* Pino to application insights transport compose config with connection string
*/
export interface ConnectionStringComposeConfig extends ComposeConfig {
/** track function called with Telemetry client context */
track: trackFunction;
/** Application insights connection string */
connectionString: string;
/**
* track function called with Telemetry client context
*/
track?: trackFunction;
/**
* optional Telemetry client config
*/
Expand Down

0 comments on commit 3ce08d1

Please sign in to comment.