UNPKG

@cparra/apex-reflection

Version:

Provides tools for reflecting Apex code, the language used in Salesforce development.

26 lines (25 loc) 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.reflectTriggerAsync = exports.reflectTrigger = exports.reflectAsync = exports.reflect = void 0; require("./out.js"); function reflect(declarationBody) { // @ts-expect-error "reflect" is added to self by the "out" module return JSON.parse(self.reflect(declarationBody)); } exports.reflect = reflect; async function reflectAsync(declarationBody) { // @ts-expect-error "reflectAsync" is added to self by the "out" module const result = await self.reflectAsync(declarationBody); return JSON.parse(result); } exports.reflectAsync = reflectAsync; function reflectTrigger(declarationBody) { // @ts-expect-error "reflectTrigger" is added to self by the "out" module return JSON.parse(self.reflectTrigger(declarationBody)); } exports.reflectTrigger = reflectTrigger; function reflectTriggerAsync(declarationBody) { // @ts-expect-error "reflectTriggerAsync" is added to self by the "out" module return self.reflectTriggerAsync(declarationBody).then((result) => JSON.parse(result)); } exports.reflectTriggerAsync = reflectTriggerAsync;