Project: titanium
Issue TIMOB-20418: Hyperloop: Expose ObjC-macros in Javascript
A lot of important type validations during both SDK- and module-development are currently realized by using macros we provide. These are for example: - ENSURE_TYPE(): Validate arguments to be from a specific type - ENSURE_SINGLE_ARG_OR_NIL(): Validates the argument length or provides a fallback - NUMINT/NUMFLOAT/NUMBOOL: Converts native types to proxy-readable NSNumbers - DEPRECATED_REPLACE: Logs a warning for deprecated API's, commonly used inside the SDK - RELEASE_TO_NIL: Does the common cleanup of allocated objects The proposal would be, to bridge those macros into Javascript-methods that are pre-processed and available without any requirement, or be part of the bridged TiUtils which is discussed in TIMOB-20417.
Story points: 1