liff-type

Type definition for LINE Frontend Framework

Usage no npm install needed!

<script type="module">
  import liffType from 'https://cdn.skypack.dev/liff-type';
</script>

README

liff-type

npm version TypeScript

Type definition for LINE Frontend Framework

Installation

npm i -D liff-type

Usage

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!

example

Versioning

Major and Minor Version are matched with LIFF SDK.

Patch is bug fixed or improvement.