MCPcopy Create free account
hub / github.com/bytebase/bytebase / engineOfInstanceV1

Function engineOfInstanceV1

frontend/src/utils/v1/instance.ts:302–309  ·  view source on GitHub ↗
(
  instanceOrEngine: Instance | InstanceResource | Engine
)

Source from the content-addressed store, hash-verified

300};
301
302export const engineOfInstanceV1 = (
303 instanceOrEngine: Instance | InstanceResource | Engine
304): Engine => {
305 if (typeof instanceOrEngine === "number") {
306 return instanceOrEngine;
307 }
308 return instanceOrEngine.engine;
309};
310
311export const engineNameV1 = (type: Engine): string => {
312 switch (type) {

Calls

no outgoing calls

Tested by

no test coverage detected