aboutsummaryrefslogblamecommitdiffstats
path: root/packages/monorepo-scripts/src/types.ts
blob: e285d908210e7e7301e44a933d9db3d7f6ff6c71 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                        





                                 
                         



                 


                                           

                       
                      
 
 
                                       

                           












                                       
 
                          
                     
                             
 
 




                                                                  
                                      
                                   

 


                                            








                                                         
import { PackageJSON } from '@0x/types';

export interface UpdatedPackage {
    name: string;
    version: string;
    private: boolean;
}

export interface Change {
    note: string;
    pr?: number;
}

export type Changelog = VersionChangelog[];

export interface VersionChangelog {
    timestamp?: number;
    version: string;
    changes: Change[];
}

export interface PackageToNextVersion {
    [name: string]: string;
}

export interface PackageRegistryJson {
    versions: {
        [version: string]: any;
    };
    time: {
        [version: string]: string;
    };
}

export interface GitTagsByPackageName {
    [packageName: string]: string[];
}

export interface Package {
    location: string;
    packageJson: PackageJSON;
}

export interface DocGenConfigs {
    DOC_JSON_VERSION: string;
    EXTERNAL_TYPE_TO_LINK: { [externalType: string]: string };
    EXTERNAL_EXPORT_TO_LINK: { [externalExport: string]: string };
    CLASSES_WITH_HIDDEN_CONSTRUCTORS: string[];
    IGNORED_EXCESSIVE_TYPES: string[];
    TYPES_ONLY_LIBRARIES: string[];
}

export interface ExportPathToExportedItems {
    [pkgName: string]: string[];
}

export interface ExportInfo {
    exportPathToExportedItems: ExportPathToExportedItems;
    exportPathOrder: string[];
}

export interface ExportNameToTypedocNames {
    [exportName: string]: string[];
}