We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21e475a commit 98fc424Copy full SHA for 98fc424
docs/pages/guide/typescript.md
@@ -47,6 +47,10 @@ const message: Line.TemplateMessage = {
47
The object above will be type-checked to have the type of
48
`Line.TemplateMessage`, and thus ensured not to miss any required field.
49
50
+Also, [literal type](https://www.typescriptlang.org/docs/handbook/advanced-types.html)
51
+is used for `type` fields, which means the compiler will complain if a wrong
52
+type string is used, and also inference the type of objects by its `type` field.
53
+
54
## How to use
55
56
The library is built to just-work with TypeScript too, so import the library and
0 commit comments