UNPKG

@metamask/ocap-kernel

Version:
1 lines 1.18 kB
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/rpc/vat-worker-service/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,qBAAoB;AACzC,OAAO,EAAE,aAAa,EAAE,wBAAuB;AAC/C,OAAO,EAAE,gBAAgB,EAAE,2BAA0B;AAWrD,MAAM,CAAC,MAAM,2BAA2B,GACtC;IACE,MAAM,EAAE,UAAU;IAClB,SAAS,EAAE,aAAa;IACxB,YAAY,EAAE,gBAAgB;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"]}