Skip to content
File

Blob: src/pyodide/types/limiter.d.ts

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