Skip to content

Commit 4b44dd3

Browse files
Neerajpathak07kgryte
authored andcommitted
remove: remove thunk from namespace
This commit removes the `thunk` symbol from the `@stdlib/utils` namespace due to a package migration. BREAKING CHANGE: remove `thunk` To migrate, users should access the same symbol via the `@stdlib/function` namespace.
1 parent 61266ec commit 4b44dd3

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

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

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ import someBy = require( '@stdlib/utils/some-by' );
202202
import someByRight = require( '@stdlib/utils/some-by-right' );
203203
import tabulate = require( '@stdlib/utils/tabulate' );
204204
import tabulateBy = require( '@stdlib/utils/tabulate-by' );
205-
import thunk = require( '@stdlib/utils/thunk' );
206205
import timeit = require( '@stdlib/utils/timeit' );
207206
import trycatch = require( '@stdlib/utils/try-catch' );
208207
import tryFunction = require( '@stdlib/utils/try-function' );
@@ -5401,27 +5400,6 @@ interface Namespace {
54015400
*/
54025401
tabulateBy: typeof tabulateBy;
54035402

5404-
/**
5405-
* Returns a thunk.
5406-
*
5407-
* @param fcn - function to convert to a thunk
5408-
* @param args - function args
5409-
* @returns thunk
5410-
*
5411-
* @example
5412-
* var add = require( '@stdlib/number/float64/base/add' );
5413-
*
5414-
* var f = ns.thunk( add, 2, 3 );
5415-
* // returns <Function>
5416-
*
5417-
* // ...
5418-
*
5419-
* // Evaluate the ns.thunk:
5420-
* var v = f();
5421-
* // returns 5
5422-
*/
5423-
thunk: typeof thunk;
5424-
54255403
/**
54265404
* Times a snippet.
54275405
*

lib/node_modules/@stdlib/utils/lib/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,15 +1678,6 @@ setReadOnly( utils, 'tabulate', require( '@stdlib/utils/tabulate' ) );
16781678
*/
16791679
setReadOnly( utils, 'tabulateBy', require( '@stdlib/utils/tabulate-by' ) );
16801680

1681-
/**
1682-
* @name thunk
1683-
* @memberof utils
1684-
* @readonly
1685-
* @type {Function}
1686-
* @see {@link module:@stdlib/utils/thunk}
1687-
*/
1688-
setReadOnly( utils, 'thunk', require( '@stdlib/utils/thunk' ) );
1689-
16901681
/**
16911682
* @name timeit
16921683
* @memberof utils

0 commit comments

Comments
 (0)