Project: titanium
Issue TIMOB-18878: Windows: Hook loading of native types through require
When typical require returns no results, and the type if a native types (i.e. 'Windows.UI.Xaml.Controls.Page') we need a mechanism to register a callback/hook into the Windows global object to then create our type wrapper class for it, and return it as the module.exports value. We should allow searching for files matching that name in JS in case someone wants to have a JS overridden version that "wins" for require. Ideally we'd have the global allow registering the hook at runtime and have the actual hook int he user's app so it limits the scope of types it'd pull in.
Story points: 13