UNPKG

@rttist/core

Version:

Core package for transformers and runtimes of RTTIST TypeScript reflection system.

10 lines (9 loc) 368 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCallsiteTypeArguments = getCallsiteTypeArguments; const consts_1 = require("./consts"); function getCallsiteTypeArguments(fn) { const callsiteArgs = fn[consts_1.CALLSITE_TYPE_ARGS_PROPERTY]; fn[consts_1.CALLSITE_TYPE_ARGS_PROPERTY] = undefined; return callsiteArgs; }