Skip to content

Commit 30bfad2

Browse files
authored
chore: re-export enums and interfaces (#63)
1 parent ab22578 commit 30bfad2

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

src/fingerprinting/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ export type FingerprintGeneratorOptions = {
1616

1717
}
1818

19-
export enum BrowserName {
19+
export const enum BrowserName {
2020
chrome = 'chrome',
2121
firefox = 'firefox',
2222
safari = 'safari',
2323
}
2424

25-
type BrowserSpecification = {
25+
export type BrowserSpecification = {
2626
name: BrowserName;
2727
minVersion?: number;
2828
maxVersion?: number;
2929
}
3030

31-
export enum OperatingSystemsName {
31+
export const enum OperatingSystemsName {
3232
linux = 'linux',
3333
macos = 'macos',
3434
windows = 'windows',
3535
}
3636

37-
export enum DeviceCategory {
37+
export const enum DeviceCategory {
3838
mobile = 'mobile',
3939
desktop = 'desktop',
4040
}

src/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ export * from './browser-pool';
2626
export * from './playwright/playwright-plugin';
2727
export * from './puppeteer/puppeteer-plugin';
2828
export * from './events';
29+
export {
30+
BrowserName,
31+
DeviceCategory,
32+
OperatingSystemsName,
33+
} from './fingerprinting/types';
2934

3035
// Type exports
3136
export type {
@@ -42,3 +47,9 @@ export type {
4247
LaunchContext,
4348
LaunchContextOptions,
4449
} from './launch-context';
50+
export type {
51+
BrowserSpecification,
52+
FingerprintGenerator,
53+
FingerprintGeneratorOptions,
54+
GetFingerprintReturn,
55+
} from './fingerprinting/types';

0 commit comments

Comments
 (0)