UNPKG

261 BTypeScriptView Raw
1/**
2 * Not all platforms allow to generate function code (e.g., `new Function`).
3 * this provides the platform-level detection.
4 * @private
5 * @returns {boolean} `true` if `new Function` is supported.
6 */
7export declare function unsafeEvalSupported(): boolean;