astro-ghostcms/.pnpm-store/v3/files/b3/9a76e0b15de77e861db1a86e69d...

14 lines
383 B
Plaintext

const RenderInstructionSymbol = Symbol.for("astro:render");
function createRenderInstruction(instruction) {
return Object.defineProperty(instruction, RenderInstructionSymbol, {
value: true
});
}
function isRenderInstruction(chunk) {
return chunk && typeof chunk === "object" && chunk[RenderInstructionSymbol];
}
export {
createRenderInstruction,
isRenderInstruction
};