mirror of
https://github.com/actions/setup-python.git
synced 2025-07-26 03:38:21 +02:00
Add generated .d.ts and .d.ts.map files
This commit is contained in:
parent
6ae21f0d45
commit
1173a1039c
44 changed files with 416 additions and 0 deletions
15
dist/setup/find-python.d.ts
vendored
Normal file
15
dist/setup/find-python.d.ts
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
interface InstalledVersion {
|
||||
impl: string;
|
||||
version: string;
|
||||
}
|
||||
/**
|
||||
* Python's prelease versions look like `3.7.0b2`.
|
||||
* This is the one part of Python versioning that does not look like semantic versioning, which specifies `3.7.0-b2`.
|
||||
* If the version spec contains prerelease versions, we need to convert them to the semantic version equivalent.
|
||||
*/
|
||||
export declare function pythonVersionToSemantic(versionSpec: string): string;
|
||||
export declare function findPythonVersion(
|
||||
version: string,
|
||||
architecture: string
|
||||
): Promise<InstalledVersion>;
|
||||
export {};
|
Loading…
Add table
Add a link
Reference in a new issue