Files
workinf_Blender_Wasm/web/protocol/resource-commands.ts
mes123456 81113159dc
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
feat(web): continue source-backed implementation waves
2026-08-29 05:46:53 +08:00

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);