オブジェクト形式の templates から、下記generate-types
を用いて型情報を生成する。
const formatMessage = createMessageFormatter<MessageFormatType>()
const result = formatMessage(templates.a, "John", "Tokyo")
build npm run build
npm 公開 npm publish --access=public
オブジェクト形式の templates から、下記generate-types
を用いて型情報を生成する。
const formatMessage = createMessageFormatter<MessageFormatType>()
const result = formatMessage(templates.a, "John", "Tokyo")
build npm run build
npm 公開 npm publish --access=public
npm i @yfnote/create-message-formatter
0
1.0.7
ISC
63 kB
27