mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
Fix compile error with es6 target
This commit is contained in:
@@ -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);
|
||||
|
||||
1
ndarray/ndarray.d.ts
vendored
1
ndarray/ndarray.d.ts
vendored
@@ -31,5 +31,6 @@ declare module 'ndarray' {
|
||||
|
||||
function ndarray(data: Data, shape?: number[], stride?: number[], offset?: number): ndarray;
|
||||
|
||||
namespace ndarray { }
|
||||
export = ndarray;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user