map.apps Bundle APIs 4.20.0
    Preparing search index...
    • Logs a deprecation warning. Deprecation logs can be configured via log-deprecations flag.

      Parameters

      • name: string

        Class or function that will be deprecated

      • description: string

        A short description which class or function shall be used instead

      Returns void

      import deprecate from "apprt-core/deprecate";

      deprecate("ct/_string encodeHTML", "Use apprt-core/string-escape instead.");
      // => logs console warning:
      // [Deprecation] ct/_string encodeHTML is deprecated. Use apprt-core/string-escape instead.