Skip to content

Commit a878209

Browse files
committed
fix: add types for the library usage
1 parent f5f4ddf commit a878209

File tree

159 files changed

+1240
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+1240
-3
lines changed

dist/legacy/asset-list.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

dist/legacy/bazel/bazel.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export declare function setupBazel(version: string, _setupDir: string, _arch: string): Promise<import("../utils/setup/setupBin.js").InstallationInfo>;

dist/legacy/ccache/ccache.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export declare function setupCcache(version: string, _setupDir: string, _arch: string): Promise<import("../utils/setup/setupBin.js").InstallationInfo>;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import type { InstallationInfo } from "../utils/setup/setupBin.js";
2+
export declare function setupChocolatey(_version: string, _setupDir: string, _arch: string): Promise<InstallationInfo | undefined>;

dist/legacy/cli-deps.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default as mri } from "mri";
2+
export { default as updateNotifier } from "simple-update-notifier";

dist/legacy/cmake/cmake.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { type InstallationInfo } from "../utils/setup/setupBin.js";
2+
/** Setup cmake */
3+
export declare function setupCmake(version: string, setupDir: string, arch: string): Promise<InstallationInfo>;

dist/legacy/cmakelang/cmakelang.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export declare function setupCmakelang(version: string | undefined, _setupDir: string, _arch: string): Promise<import("../utils/setup/setupBin.js").InstallationInfo>;

dist/legacy/compilers.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export type CompilerInfo = {
2+
compiler: string;
3+
version: string | undefined;
4+
};
5+
/**
6+
* Detecting the compiler version by looking for a version-like pattern.
7+
* Supports compiler names that contain hyphens and various version formats.
8+
*
9+
* @param compilerAndVersion - The compiler and version string
10+
* @returns The compiler and version
11+
*
12+
* @nothrow It doesn't throw any error, but it logs the error if it fails to parse the compiler info
13+
*/
14+
export declare function getCompilerInfo(compilerAndVersion: string): CompilerInfo;
15+
/** Installing the specified compiler */
16+
export declare function installCompiler(compiler: string, version: string | undefined, osVersion: number[] | null, setupCppDir: string, arch: string, successMessages: string[], errorMessages: string[]): Promise<void>;

dist/legacy/conan/conan.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export declare function setupConan(version: string | undefined, _setupDir: string, _arch: string): Promise<import("../utils/setup/setupBin.js").InstallationInfo>;

dist/legacy/cppcheck/cppcheck.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export declare function setupCppcheck(version: string | undefined, _setupDir: string, _arch: string): Promise<import("../utils/setup/setupBin.js").InstallationInfo>;

0 commit comments

Comments
 (0)