Skip to content

Instantly share code, notes, and snippets.

@nros
nros / Test.TypeScriptExporterPlainLibrary.cs
Last active November 9, 2020 16:54
Unit test for issue 145 of project Reinforced.Typings - https://github.com/reinforced/Reinforced.Typings/issues/145
#nullable enable
using System;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;
using Namotion.Reflection;
using Reinforced.Typings;
using Reinforced.Typings.Fluent;
using Xunit;
using Xunit.Abstractions;
@nros
nros / rxjsLoader.js
Last active February 24, 2018 18:29
SystemJS: custom loader to help Angular 2 to `require()` parts of RxJS if these parts have already been loaded with a single file (eg: `Rx.js`)
// see: https://github.com/angular/angular/issues/9359
// in case all parts of RxJS are loaded with a single file (eg: Rx.js), Angular 2 may have
// difficulties using/requiring the various parts.
// this custom loader translates requests to these parts to the already loaded Rx entity.
//
// eg: Angular:
// require('rxjs/observable/from') --> Rx.Observable
// require('rxjs/operator/concatMap') --> Rx.Observable.prototype
// require('rxjs/util/EmptyError') --> Rx
//