Skip to content

Commit 25fdfdf

Browse files
Update namespace TypeScript declarations (#738)
Co-authored-by: kgryte <kgryte@users.noreply.github.com>
1 parent 8fad86d commit 25fdfdf

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,29 @@
2121
/* tslint:disable:max-line-length */
2222
/* tslint:disable:max-file-line-count */
2323

24+
import log = require( '@stdlib/console/log' );
25+
2426
/**
2527
* Interface describing the `console` namespace.
2628
*/
27-
interface Namespace {}
29+
interface Namespace {
30+
/**
31+
* Outputs a message to the debugger console.
32+
*
33+
* @param data - data to log
34+
* @param args - additional arguments (including substitution values)
35+
*
36+
* @example
37+
* ns.log( 'Hello, World!' );
38+
*
39+
* @example
40+
* ns.log( 'Hello, %s!', 'World' );
41+
*/
42+
log: typeof log;
43+
}
2844

2945
/**
30-
* Console.
46+
* Debugger console.
3147
*/
3248
declare var ns: Namespace;
3349

lib/node_modules/@stdlib/math/base/special/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ interface Namespace {
761761
atan2: typeof atan2;
762762

763763
/**
764-
* Computes the hyperbolic arctangent of a number.
764+
* Computes the hyperbolic arctangent of a double-precision floating-point number.
765765
*
766766
* @param x - input value
767767
* @returns hyperbolic arctangent
@@ -4095,7 +4095,7 @@ interface Namespace {
40954095
kernelBetaincinv: typeof kernelBetaincinv;
40964096

40974097
/**
4098-
* Computes the cosine of a number on `[-π/4, π/4]`.
4098+
* Computes the cosine of a double-precision floating-point number on `[-π/4, π/4]`.
40994099
*
41004100
* ## Notes
41014101
*
@@ -4163,7 +4163,7 @@ interface Namespace {
41634163
kernelSin: typeof kernelSin;
41644164

41654165
/**
4166-
* Computes the tangent of a number on `[-π/4, π/4]`.
4166+
* Computes the tangent of a double-precision floating-point number on `[-π/4, π/4]`.
41674167
*
41684168
* ## Notes
41694169
*

0 commit comments

Comments
 (0)