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13
1.8.12
1.8.11
1.8.10
1.8.9
1.8.8
1.8.7
1.8.6
1.8.5
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.7.0
1.6.0
1.5.2
1.5.1
1.5.0
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.7.1
0.7.0
0.6.0
0.5.2
0.5.1
0.5.0
0.4.3
0.4.2
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.1
0.1.0
Various string formatting & utility functions
thi.ng/format
thi-ng/umbrella
@thi.ng/strings
/
truncate.d.ts
7 lines
•
285 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
type
{
Stringer
}
from
"./api.js"
;
export
declare
const
truncate
:
(
n
:
number
,
suffix
?:
string
) =>
Stringer
<
string
>;
/** * Alias for {
@link
truncate} */
export
declare
const
truncateRight
:
(
n
:
number
,
suffix
?:
string
) =>
Stringer
<
string
>;
//# sourceMappingURL=truncate.d.ts.map