11// Upload configuration with optional properties
2- interface UploadConfig {
2+ export interface UploadConfig {
33 repo ?: string ; // The repository name (e.g., "mui/material-ui")
44 branch ?: string ; // Optional branch name (defaults to current Git branch)
55 isPullRequest ?: boolean ; // Whether this is a pull request build (defaults to CI detection)
66}
77
88// Normalized upload configuration where all properties are defined
9- interface NormalizedUploadConfig {
9+ export interface NormalizedUploadConfig {
1010 repo : string ; // The repository name (e.g., "mui/material-ui")
1111 branch : string ; // Branch name
1212 isPullRequest : boolean ; // Whether this is a pull request build
@@ -15,7 +15,7 @@ interface NormalizedUploadConfig {
1515// EntryPoint types
1616type StringEntry = string ;
1717
18- interface ObjectEntry {
18+ export interface ObjectEntry {
1919 id : string ; // Unique identifier for the entry (renamed from 'name')
2020 code ?: string ; // Code to be executed in the virtual module (now optional)
2121 import ?: string ; // Optional package name to import
@@ -28,7 +28,7 @@ interface ObjectEntry {
2828export type EntryPoint = StringEntry | ObjectEntry ;
2929
3030// Bundle size checker config with optional upload config
31- interface BundleSizeCheckerConfigObject {
31+ export interface BundleSizeCheckerConfigObject {
3232 entrypoints : EntryPoint [ ] ;
3333 upload ?: UploadConfig | boolean | null ;
3434 comment ?: boolean ; // Whether to post PR comments (defaults to true)
@@ -41,15 +41,15 @@ export type BundleSizeCheckerConfig =
4141 | ( ( ) => BundleSizeCheckerConfigObject | Promise < BundleSizeCheckerConfigObject > ) ;
4242
4343// Normalized bundle size checker config with all properties defined
44- interface NormalizedBundleSizeCheckerConfig {
44+ export interface NormalizedBundleSizeCheckerConfig {
4545 entrypoints : ObjectEntry [ ] ;
4646 upload : NormalizedUploadConfig | null ; // null means upload is disabled
4747 comment : boolean ; // Whether to post PR comments
4848 replace : Record < string , string > ; // String replacements to apply during bundling
4949}
5050
5151// Command line argument types
52- interface CommandLineArgs {
52+ export interface CommandLineArgs {
5353 analyze ?: boolean ;
5454 output ?: string ;
5555 verbose ?: boolean ;
@@ -58,27 +58,27 @@ interface CommandLineArgs {
5858 debug ?: boolean ;
5959}
6060
61- interface ReportCommandArgs {
61+ export interface ReportCommandArgs {
6262 pr ?: number ;
6363 owner ?: string ;
6464 repo ?: string ;
6565}
6666
6767// Diff command argument types
68- interface DiffCommandArgs {
68+ export interface DiffCommandArgs {
6969 base : string ;
7070 head ?: string ;
7171 output ?: 'json' | 'markdown' ;
7272 reportUrl ?: string ;
7373}
7474
7575// PR command argument types
76- interface PrCommandArgs {
76+ export interface PrCommandArgs {
7777 prNumber : number ;
7878 output ?: 'json' | 'markdown' ;
7979}
8080
81- interface PrInfo {
81+ export interface PrInfo {
8282 number : number ;
8383 base : {
8484 ref : string ;
@@ -93,7 +93,7 @@ interface PrInfo {
9393 } ;
9494}
9595
96- interface SizeSnapshotEntry {
96+ export interface SizeSnapshotEntry {
9797 parsed : number ;
9898 gzip : number ;
9999}
0 commit comments