UNPKG

642 BSource Map (JSON)View Raw
1{"version":3,"file":"if-signature.js","sourceRoot":"","sources":["../../../../src/lib/output/helpers/if-signature.ts"],"names":[],"mappings":";;AAAA,kEAAyE;AAEzE,SAAgB,WAAW,CAAC,GAAQ,EAAE,GAAQ;IAC1C,IAAI,GAAG,YAAY,+BAAmB,EAAE;QACpC,OAAO,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;KACvB;SAAM;QACH,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;KAC5B;AACL,CAAC;AAND,kCAMC","sourcesContent":["import { SignatureReflection } from '../../models/reflections/signature';\n\nexport function ifSignature(obj: any, arg: any) {\n if (obj instanceof SignatureReflection) {\n return arg.fn(this);\n } else {\n return arg.inverse(this);\n }\n}\n"]}
\No newline at end of file