File
Blob: src/pyodide/types/limiter.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 | // A typescript declaration file for the internal Limiter JSG class |
| 6 | // see src/workerd/api/pyodide/pyodide.h (SimplePythonLimiter) |
| 7 | |
| 8 | import ArtifactBundler from './artifacts.js'; |
| 9 | |
| 10 | interface Limiter { |
| 11 | beginStartup: () => void; |
| 12 | finishStartup: ( |
| 13 | snapshotType: ArtifactBundler.SnapshotType | undefined |
| 14 | ) => void; |
| 15 | } |
| 16 | |
| 17 | declare const limiter: Limiter; |
| 18 | |
| 19 | export default limiter; |