Skip to content

Commit 5d6856b

Browse files
committed
Rename namespace interface and variable names
1 parent ae52105 commit 5d6856b

File tree

22 files changed

+2038
-2051
lines changed

22 files changed

+2038
-2051
lines changed

lib/node_modules/@stdlib/assert/docs/types/index.d.ts

Lines changed: 768 additions & 768 deletions
Large diffs are not rendered by default.

lib/node_modules/@stdlib/assert/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ import assert = require( './index' );
2525

2626
// The exported value is the expected interface...
2727
{
28-
assert; // $ExpectType ASSERT
28+
assert; // $ExpectType Namespace
2929
}

lib/node_modules/@stdlib/error/docs/types/index.d.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@
1818

1919
// TypeScript Version: 2.0
2020

21+
/* tslint:disable:max-line-length */
22+
/* tslint:disable:max-file-line-count */
23+
2124
import reviveError = require( '@stdlib/error/reviver' );
2225
import error2json = require( '@stdlib/error/to-json' );
2326

2427
/**
2528
* Interface describing the `error` namespace.
2629
*/
27-
interface ERROR {
30+
interface Namespace {
2831
/**
2932
* Revives a JSON-serialized error object.
3033
*
@@ -34,7 +37,7 @@ interface ERROR {
3437
*
3538
* @example
3639
* var str = '{"type":"TypeError","message":"beep"}';
37-
* var err = JSON.parse( str, reviver );
40+
* var err = JSON.parse( str, ns.reviveError );
3841
* // returns <TypeError>
3942
*/
4043
reviveError: typeof reviveError;
@@ -47,7 +50,7 @@ interface ERROR {
4750
*
4851
* @example
4952
* var err = new Error( 'beep' );
50-
* var json = toJSON( err );
53+
* var json = ns.error2json( err );
5154
* // returns {...}
5255
*/
5356
error2json: typeof error2json;
@@ -56,9 +59,9 @@ interface ERROR {
5659
/**
5760
* Errors.
5861
*/
59-
declare var error: ERROR;
62+
declare var ns: Namespace;
6063

6164

6265
// EXPORTS //
6366

64-
export = error;
67+
export = ns;

lib/node_modules/@stdlib/error/docs/types/test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ import error = require( './index' );
2323

2424
// TESTS //
2525

26-
// The exported object has the expected function interfaces...
26+
// The exported value is the expected interface...
2727
{
28-
error.reviveError; // $ExpectType (key: string, value: any) => any
29-
error.error2json; // $ExpectType (err: Error | TypeError | SyntaxError | URIError | ReferenceError | RangeError | EvalError) => any
28+
error; // $ExpectType Namespace
3029
}

0 commit comments

Comments
 (0)