Skip to content

Commit a8b918d

Browse files
Export types for transports too
1 parent e7508c6 commit a8b918d

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/transports/google/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { whisper } from '@oliveai/ldk';
33
import { BaseTransport } from '../base';
44
import { GoogleTransportConfig, EventProps, HitType } from './types';
55

6+
export * as GoogleTransportTypes from './types';
7+
68
export class GoogleTransport extends BaseTransport<GoogleTransportConfig> {
79
baseUrl = 'https://google-analytics.com/collect';
810

src/transports/google/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface EventProps {
1111
label: string;
1212
}
1313

14-
interface CategoryActionObj {
14+
export interface CategoryActionObj {
1515
category: string;
1616
action: string;
1717
}

src/transports/segment/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { WhisperComponentType } from '@oliveai/ldk/dist/whisper';
33
import { BaseTransport, LoopConfig } from '../base';
44
import { TrackProps, SegmentProps, SegmentTransportConfig, SegmentUserConfig } from './types';
55

6+
export * as SegmentTransportTypes from './types';
7+
68
export class SegmentTransport extends BaseTransport<SegmentTransportConfig, SegmentUserConfig> {
79
baseUrl = `https://api.segment.io/${this.transportConfig.apiVersion || 'v1'}`;
810

src/transports/segment/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ export interface SegmentUserConfig extends UserConfig {
1111
operatingSystem: string;
1212
}
1313

14-
interface CommonProps {
14+
export interface CommonProps {
1515
userId?: string;
1616
properties?: {
1717
whisper_name?: string;
1818
loop_name?: string;
1919
};
2020
}
2121

22-
type IdentifyProps = {
22+
export type IdentifyProps = {
2323
event?: never;
2424
name?: never;
2525
traits: {
@@ -29,7 +29,7 @@ type IdentifyProps = {
2929
};
3030
} & CommonProps;
3131

32-
type PageProps = {
32+
export type PageProps = {
3333
event?: never;
3434
name: string;
3535
properties: { whisper_updated: boolean };

0 commit comments

Comments
 (0)