UNPKG
@catchphrase/core
Version:
latest (1.0.0)
1.0.0
Functional i18n library for the web
@catchphrase/core
/
dist
/
createCatchphrase.d.ts
7 lines
(6 loc)
•
265 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
Catchphrase
,
CatchphraseConfig
,
LanguageCode
}
from
"./types"
;
/** * Creates a new catchphrase instance *
@returns
*/
export
declare
const
createCatchphrase
: <L
extends
LanguageCode
>
(
{ languageSelector, }:
CatchphraseConfig
<L>
) =>
Catchphrase
<L>;