Fix compile error with es6 target

This commit is contained in:
Giff Song
2016-10-24 02:55:48 +09:00
parent e6fbb4b526
commit f0e2c8cd2c
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
/// <reference path="ndarray.d.ts" />
import ndarray = require('ndarray');
import * as ndarray from 'ndarray';
const data = new Int32Array(2 * 2 * 2 + 10);
const a = ndarray(data, [2, 2, 2], [1, 2, 4], 5);

View File

@@ -31,5 +31,6 @@ declare module 'ndarray' {
function ndarray(data: Data, shape?: number[], stride?: number[], offset?: number): ndarray;
namespace ndarray { }
export = ndarray;
}