tiktok-sparo/common/reviews/api/sparo-lib.api.md

122 lines
3.4 KiB
Markdown
Raw Normal View History

2024-02-21 13:56:19 -05:00
## API Report File for "sparo-lib"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
2024-02-21 13:57:36 -05:00
/// <reference types="node" />
import * as child_process from 'child_process';
import { GitRepoInfo } from 'git-repo-info';
import { ITerminal } from '@rushstack/terminal';
2024-02-21 13:57:36 -05:00
// Warning: (ae-forgotten-export) The symbol "Constructable" needs to be exported by the entry point index.d.ts
//
// @alpha
export function getFromContainerAsync<T>(clazz: Constructable<T>): Promise<T>;
2024-02-21 13:57:36 -05:00
// @alpha
export class GitService {
// (undocumented)
2024-02-20 20:25:44 -05:00
executeGitCommand({ args, workingDirectory }: IExecuteGitCommandParams): child_process.SpawnSyncReturns<string>;
2024-02-21 13:57:36 -05:00
// (undocumented)
2024-02-20 20:25:44 -05:00
executeGitCommandAndCaptureOutput({ args, workingDirectory }: IExecuteGitCommandParams): string;
2024-02-21 13:57:36 -05:00
getBasenameFromUrl(url: string): string;
// (undocumented)
2024-02-22 02:20:23 -05:00
getBranchRemote(branch: string): string;
// (undocumented)
2024-02-21 13:57:36 -05:00
getGitConfig(k: string, option?: {
dryRun?: boolean;
global?: boolean;
}): string | undefined;
// (undocumented)
getGitEmail(): string | undefined;
// (undocumented)
getGitPathOrThrow(): string;
// (undocumented)
getGitUser(): string | undefined;
// (undocumented)
getGitVersion(): [number, number, number] | undefined;
// (undocumented)
getIsSparseCheckoutMode(): boolean | undefined;
// (undocumented)
getRepoInfo(): GitRepoInfo;
get gitPath(): string | undefined;
// (undocumented)
2024-02-20 20:25:44 -05:00
hasFile(filename: string, branch: string): boolean;
// (undocumented)
2024-02-21 13:57:36 -05:00
setGitConfig(k: string, v: string | number | boolean, option?: {
dryRun?: boolean;
global?: boolean;
}): void;
// (undocumented)
setRecommendConfig(option?: {
overwrite?: boolean;
dryRun?: boolean;
}): void;
}
2024-02-26 18:55:43 -05:00
// @alpha
export interface ICallerPackageJson {
name: string;
version: string;
}
2024-02-21 13:57:36 -05:00
// @alpha (undocumented)
export type ICollectTelemetryFunction = (data: ITelemetryData) => Promise<void>;
// @alpha (undocumented)
export interface IExecuteGitCommandParams {
// (undocumented)
args: string[];
// (undocumented)
workingDirectory?: string;
}
// @public
export interface ILaunchOptions {
2024-02-26 18:55:43 -05:00
// @internal
callerPackageJson?: ICallerPackageJson;
2024-02-21 13:57:36 -05:00
// @internal
collectTelemetryAsync?: ICollectTelemetryFunction;
}
// @alpha (undocumented)
export interface ITelemetryData {
readonly args: string[];
readonly commandName: string;
readonly durationInSeconds: number;
readonly endTimestampMs?: number;
readonly isRawGitCommand?: boolean;
readonly startTimestampMs?: number;
}
export { ITerminal }
2024-02-21 13:56:19 -05:00
// @public
export class Sparo {
// (undocumented)
2024-02-21 13:57:36 -05:00
static launchSparoAsync(launchOptions: ILaunchOptions): Promise<void>;
2024-02-21 13:56:19 -05:00
// (undocumented)
2024-02-21 13:57:36 -05:00
static launchSparoCIAsync(launchOptions: ILaunchOptions): Promise<void>;
2024-02-21 13:56:19 -05:00
}
// @alpha
export class TerminalService {
constructor();
// (undocumented)
setIsDebug(value: boolean): void;
// (undocumented)
setIsVerbose(value: boolean): void;
// (undocumented)
get terminal(): ITerminal;
2024-02-23 18:04:20 -05:00
// (undocumented)
writeTaskFooter(): void;
// (undocumented)
writeTaskHeader(taskTitle: string): void;
}
2024-02-21 13:56:19 -05:00
// (No @packageDocumentation comment for this package)
```