9 lines
363 B
TypeScript
9 lines
363 B
TypeScript
import type { WebEngineRequest } from "./web-engine";
|
|
|
|
/** Resource-facing command constructors; asset bytes remain owned by the worker/storage path. */
|
|
export const resourceCommands = Object.freeze({
|
|
requestAsset(assetId: string): Extract<WebEngineRequest["command"], { type: "requestAsset" }> {
|
|
return { type: "requestAsset", assetId };
|
|
},
|
|
} as const);
|