UNPKG
prevent-widows
Version:
latest (1.1.2)
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
Prevent widows from appearing in a string.
github.com/bashaus/prevent-widows
bashaus/prevent-widows
prevent-widows
/
dist
/
lib
/
index.d.ts
7 lines
(6 loc)
•
256 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
type
{
Encoding
}
from
"./encodings"
;
export
type
PreventWindowsOptions
= {
encoding
:
Encoding
; };
declare
const
preventWidows
:
(
text
:
string
,
customPreventWidowsOptions
?:
Partial
<
PreventWindowsOptions
>
) =>
string
;
export
default
preventWidows;