UNPKG

@endo/compartment-mapper

Version:

The compartment mapper assembles Node applications in a sandbox

12 lines 1.17 kB
/** @type {(left: string, right: string) => number} */ export const stringCompare: (left: string, right: string) => number; export function assertFileCompartmentMap(allegedCompartmentMap: unknown, url?: string): asserts allegedCompartmentMap is FileCompartmentMapDescriptor; export function assertDigestedCompartmentDescriptors(allegedCompartments: unknown, url?: string): asserts allegedCompartments is Record<string, DigestedCompartmentDescriptor>; export function assertDigestedCompartmentMap(allegedCompartmentMap: unknown, url?: string): asserts allegedCompartmentMap is DigestedCompartmentMapDescriptor; export function assertPackageCompartmentMap(allegedCompartmentMap: unknown, url?: string): asserts allegedCompartmentMap is PackageCompartmentMapDescriptor; export type AssertFn<T = string> = (value: unknown, keypath: string, url: string) => void; import type { FileCompartmentMapDescriptor } from './types.js'; import type { DigestedCompartmentDescriptor } from './types.js'; import type { DigestedCompartmentMapDescriptor } from './types.js'; import type { PackageCompartmentMapDescriptor } from './types.js'; //# sourceMappingURL=compartment-map.d.ts.map