Skip to content
File

Blob: src/pyodide/types/pyodide-lock.d.ts

typescript29 lines
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 
5type InstallDir = 'site' | 'stdlib' | 'dynlib';
6interface 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 
19interface PackageLock {
20 packages: {
21 [id: string]: PackageDeclaration;
22 };
23}
24 
25declare module 'pyodide-internal:generated/pyodide-lock.json' {
26 const lock: PackageLock;
27 export default lock;
28}