Skip to content

Commit a1aba76

Browse files
committed
Auto-generated commit
1 parent e8cd163 commit a1aba76

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

datespace/docs/types/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import datespace = require( './index' );
3131
datespace( start, stop, 30, { 'round': 'floor' } ); // $ExpectType Date[]
3232
}
3333

34-
// The function does not compile if provided values other `Date` objects, Unix timestamps, JavaScript timestamps, or date strings for the first two parameters...
34+
// The compiler throws an error if the function is provided values other `Date` objects, Unix timestamps, JavaScript timestamps, or date strings for the first two parameters...
3535
{
3636
const stop = '2014-12-02T07:00:54.973Z';
3737
const start = new Date( stop ).getTime() - 60000;
@@ -49,7 +49,7 @@ import datespace = require( './index' );
4949
datespace( start, ( x: number ): number => x ); // $ExpectError
5050
}
5151

52-
// The function does not compile if provided a value other than a number or object for the third parameter...
52+
// The compiler throws an error if the function is provided a value other than a number or object for the third parameter...
5353
{
5454
const stop = '2014-12-02T07:00:54.973Z';
5555
const start = new Date( stop ).getTime() - 60000;
@@ -79,7 +79,7 @@ import datespace = require( './index' );
7979
datespace( start, stop, 10, { 'round': ( x: number ): number => x } ); // $ExpectError
8080
}
8181

82-
// The function does not compile if provided insufficient arguments...
82+
// The compiler throws an error if the function is provided insufficient arguments...
8383
{
8484
datespace(); // $ExpectError
8585
datespace( new Date() ); // $ExpectError

incrspace/docs/types/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import incrspace = require( './index' );
2727
incrspace( 0, 10 ); // $ExpectType number[]
2828
}
2929

30-
// The function does not compile if provided values other than two numbers for the first two parameters...
30+
// The compiler throws an error if the function is provided values other than two numbers for the first two parameters...
3131
{
3232
incrspace( true, 10 ); // $ExpectError
3333
incrspace( false, 10 ); // $ExpectError
@@ -44,7 +44,7 @@ import incrspace = require( './index' );
4444
incrspace( 8, ( x: number ): number => x ); // $ExpectError
4545
}
4646

47-
// The function does not compile if provided a value other than a number for the third parameter...
47+
// The compiler throws an error if the function is provided a value other than a number for the third parameter...
4848
{
4949
incrspace( 3, 20, true ); // $ExpectError
5050
incrspace( 4, 20, false ); // $ExpectError
@@ -53,7 +53,7 @@ import incrspace = require( './index' );
5353
incrspace( 9, 20, ( x: number ): number => x ); // $ExpectError
5454
}
5555

56-
// The function does not compile if provided insufficient arguments...
56+
// The compiler throws an error if the function is provided insufficient arguments...
5757
{
5858
incrspace(); // $ExpectError
5959
incrspace( 3 ); // $ExpectError

logspace/docs/types/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import logspace = require( './index' );
2727
logspace( 0, 10 ); // $ExpectType number[]
2828
}
2929

30-
// The function does not compile if provided values other than two numbers for the first two parameters...
30+
// The compiler throws an error if the function is provided values other than two numbers for the first two parameters...
3131
{
3232
logspace( true, 10 ); // $ExpectError
3333
logspace( false, 10 ); // $ExpectError
@@ -44,7 +44,7 @@ import logspace = require( './index' );
4444
logspace( 8, ( x: number ): number => x ); // $ExpectError
4545
}
4646

47-
// The function does not compile if provided a value other than a number for the third parameter...
47+
// The compiler throws an error if the function is provided a value other than a number for the third parameter...
4848
{
4949
logspace( 3, 20, true ); // $ExpectError
5050
logspace( 4, 20, false ); // $ExpectError
@@ -53,7 +53,7 @@ import logspace = require( './index' );
5353
logspace( 9, 20, ( x: number ): number => x ); // $ExpectError
5454
}
5555

56-
// The function does not compile if provided insufficient arguments...
56+
// The compiler throws an error if the function is provided insufficient arguments...
5757
{
5858
logspace(); // $ExpectError
5959
logspace( 3 ); // $ExpectError

promotion-rules/docs/types/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import promotionRules = require( './index' );
3939
promotionRules( 'bar', 'float32' ); // $ExpectType null
4040
}
4141

42-
// The function does not compile if provided a first argument that is not a string...
42+
// The compiler throws an error if the function is provided a first argument that is not a string...
4343
{
4444
promotionRules( 123, 'float64' ); // $ExpectError
4545
promotionRules( true, 'float64' ); // $ExpectError
@@ -49,7 +49,7 @@ import promotionRules = require( './index' );
4949
promotionRules( ( x: number ): number => x, 'float64' ); // $ExpectError
5050
}
5151

52-
// The function does not compile if provided a second argument that is not a string...
52+
// The compiler throws an error if the function is provided a second argument that is not a string...
5353
{
5454
promotionRules( 'int32', 123 ); // $ExpectError
5555
promotionRules( 'int32', true ); // $ExpectError
@@ -59,7 +59,7 @@ import promotionRules = require( './index' );
5959
promotionRules( 'int32', ( x: number ): number => x ); // $ExpectError
6060
}
6161

62-
// The function does not compile if provided more than one argument...
62+
// The compiler throws an error if the function is provided more than one argument...
6363
{
6464
promotionRules( 'float32' ); // $ExpectError
6565
promotionRules( 'float32', 'int32', {} ); // $ExpectError

reviver/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import reviveTypedArray = require( './index' );
3030
reviveTypedArray( 'foo', o ); // $ExpectType any
3131
}
3232

33-
// The function does not compile if provided a first argument that is not a string...
33+
// The compiler throws an error if the function is provided a first argument that is not a string...
3434
{
3535
reviveTypedArray( true, 1 ); // $ExpectError
3636
reviveTypedArray( false, 1 ); // $ExpectError
@@ -42,7 +42,7 @@ import reviveTypedArray = require( './index' );
4242
reviveTypedArray( ( x: number ): number => x, 1 ); // $ExpectError
4343
}
4444

45-
// The function does not compile if provided insufficient arguments...
45+
// The compiler throws an error if the function is provided insufficient arguments...
4646
{
4747
reviveTypedArray(); // $ExpectError
4848
reviveTypedArray( 'beep' ); // $ExpectError

0 commit comments

Comments
 (0)