File
Blob: src/pyodide/types/pyodide-lock.d.ts
| 1 | // Copyright (c) 2026 Cloudflare, Inc. |
| 2 | // Licensed under the Apache 2.0 license found in the LICENSE file or at: |
| 3 | // https://opensource.org/licenses/Apache-2.0 |
| 4 | |
| 5 | type InstallDir = 'site' | 'stdlib' | 'dynlib'; |
| 6 | interface PackageDeclaration { |
| 7 | depends: string[]; |
| 8 | file_name: string; |
| 9 | imports: string[]; |
| 10 | install_dir: InstallDir; |
| 11 | name: string; |
| 12 | package_type: string; |
| 13 | sha256: string; |
| 14 | shared_library: boolean; |
| 15 | unvendored_tests: boolean; |
| 16 | version: string; |
| 17 | } |
| 18 | |
| 19 | interface PackageLock { |
| 20 | packages: { |
| 21 | [id: string]: PackageDeclaration; |
| 22 | }; |
| 23 | } |
| 24 | |
| 25 | declare module 'pyodide-internal:generated/pyodide-lock.json' { |
| 26 | const lock: PackageLock; |
| 27 | export default lock; |
| 28 | } |