function identity<T>(arg: T): T {
return arg;
}
identity(2); // no error
identity<string>(2); // error: argument is not string
let my_awesome_integer: number;
my_awesome_integer = identity<string>('asd');
// error: string is not assignable to number
So, my recommended solution for developers on windows that are depending on node-mapnik is to pin your usage in your package.json to v3.6.2