Type definition for LINE Frontend Framework
Now LINE publishs official liff at npmjs with typescript! So this package won't be no longer maintainance :) See ya.
Please visit @line/liff
npm i -D liff-type
In .tsconfig
, add liff-type
to types
in compilerOptions
{
"compilerOptions": {
"types": ["liff-type"]
}
}
In your code, you can access liff
directly as global variable without window!
Major and Minor Version are matched with LIFF SDK.
Patch is bug fixed or improvement.