UNPKG
@grammyjs/commands
Version:
latest (1.2.0)
1.2.0
1.1.0
1.0.9
1.0.8
1.0.5
1.0.4
1.0.3
1.0.1
1.0.0
0.11.0
0.10.0
0.9.0
0.8.1
0.8.0
0.7.0
0.6.1
0.6.0
0.5.1
0.5.0
0.3.1
0.3.0
0.0.1
grammY Commands Plugin
grammy.dev/plugins/commands
grammyjs/commands
@grammyjs/commands
/
out
/
utils
/
array.d.ts
5 lines
(4 loc)
•
231 B
TypeScript
View Raw
1
2
3
4
5
export
type
MaybeArray
<T> = T | T[];
export
declare
const
ensureArray
: <T>
(
value
:
MaybeArray
<T>
) =>
T[];
export
declare
function
escapeSpecial
(
str
:
string
):
string
;
export
declare
function
getCommandsRegex
(
prefix
:
string
):
RegExp
;