UNPKG

@metamask/ocap-kernel

Version:
1 lines 1.11 kB
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/rpc/vat-worker-service/index.ts"],"names":[],"mappings":";;;AAEA,4CAAyC;AACzC,kDAA+C;AAC/C,wDAAqD;AAWxC,QAAA,2BAA2B,GACtC;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,4BAAa;IACxB,YAAY,EAAE,kCAAgB;CACtB,CAAC","sourcesContent":["import type { MethodSpecRecord } from '@metamask/kernel-rpc-methods';\n\nimport { launchSpec } from './launch.ts';\nimport { terminateSpec } from './terminate.ts';\nimport { terminateAllSpec } from './terminateAll.ts';\n\n// This module only has method specifications and no handlers, because the method\n// implementations are highly platform-specific and do not warrant standalone\n// implementations.\n\nexport type VatWorkerServiceMethodSpecs =\n | typeof launchSpec\n | typeof terminateSpec\n | typeof terminateAllSpec;\n\nexport const vatWorkerServiceMethodSpecs: MethodSpecRecord<VatWorkerServiceMethodSpecs> =\n {\n launch: launchSpec,\n terminate: terminateSpec,\n terminateAll: terminateAllSpec,\n } as const;\n\nexport type VatWorkerServiceMethod = VatWorkerServiceMethodSpecs['method'];\n"]}