MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / setRuntime

Method setRuntime

packages/renderer-core/src/adapter/index.ts:55–59  ·  view source on GitHub ↗
(runtime: IRuntime)

Source from the content-addressed store, hash-verified

53 }
54
55 setRuntime(runtime: IRuntime) {
56 if (this.isValidRuntime(runtime)) {
57 this.runtime = runtime;
58 }
59 }
60
61 isValidRuntime(runtime: IRuntime) {
62 if (typeof runtime !== 'object' || Array.isArray(runtime)) {

Callers 3

index.tsFile · 0.80
react-env-init.tsFile · 0.80
adapter.test.tsFile · 0.80

Calls 1

isValidRuntimeMethod · 0.95

Tested by

no test coverage detected