UNPKG
anyid
Version:
latest (1.0.7)
1.0.7
1.0.6
1.0.5
1.0.3
1.0.2
1.0.1
1.0.0
0.0.4
0.0.2
0.0.1
0.0.0
A simple and flexible API to generate various kinds of string ID / code.
aleung/node-anyid
anyid
/
lib
/
function.d.ts
12 lines
(11 loc)
•
291 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
/// <reference types="node" />
import
{
AnyId
}
from
'./core'
;
export
declare
type
ValueCallback
=
() =>
number
|
Buffer
;
declare
module
'./core'
{
interface
AnyId
{
of
(
f
:
ValueCallback
):
AnyId
; } }
export
declare
class
Func
{
of
(
this
:
AnyId
,
f
:
ValueCallback
):
AnyId
; }