MCPcopy Create free account
hub / github.com/MMmaXingXing/mini-vue / getShapeFlag

Function getShapeFlag

code/src/runtime-core/vnode.ts:39–43  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

37};
38
39export const getShapeFlag = (type) => {
40 return typeof type === "string"
41 ? ShapeFlags.ELEMENT
42 : ShapeFlags.STATEFUL_COMPONENT;
43};

Callers 1

createVNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected