Spaces:
Build error
Build error
File size: 468 Bytes
c211499 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
/**
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
*/
import { type Shims } from './registry';
import { getRuntime as getWebRuntime } from './web-runtime';
import { ReadStream as FsReadStream } from 'node:fs';
export function getRuntime(): Shims {
const runtime = getWebRuntime();
function isFsReadStream(value: any): value is FsReadStream {
return value instanceof FsReadStream;
}
return { ...runtime, isFsReadStream };
}
|