🤖 Merge PR #46702 [dtype] Remove superfluous /// <reference types="node" /> by @jablko

This commit is contained in:
Jack Bates 2020-08-12 15:05:40 -07:00 committed by GitHub
parent 13f71a7d36
commit fa8a29a57f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,13 @@
/// <reference types="node" />
import dtype = require('dtype');
// tslint:disable: new-parens
new (dtype('Float64Array')); // $ExpectType Float64Array
new (dtype('Float64Array'))(0); // $ExpectType Float64Array
new (dtype('array')); // $ExpectType any[]
new (dtype('float32')); // $ExpectType Float32Array
new (dtype('int16')); // $ExpectType Int16Array
new (dtype('int32')); // $ExpectType Int32Array
new (dtype('int8')); // $ExpectType Int8Array
new (dtype('uint16')); // $ExpectType Uint16Array
new (dtype('uint32')); // $ExpectType Uint32Array
new (dtype('uint8_clamped')); // $ExpectType Uint8ClampedArray
new (dtype('float32'))(0); // $ExpectType Float32Array
new (dtype('int16'))(0); // $ExpectType Int16Array
new (dtype('int32'))(0); // $ExpectType Int32Array
new (dtype('int8'))(0); // $ExpectType Int8Array
new (dtype('uint16'))(0); // $ExpectType Uint16Array
new (dtype('uint32'))(0); // $ExpectType Uint32Array
new (dtype('uint8_clamped'))(0); // $ExpectType Uint8ClampedArray
dtype('abc'); // $ExpectType undefined