Skip to content

Commit

Permalink
chore: fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 7, 2020
1 parent 764b816 commit af50c85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install
run: yarn
- name: Build
run: yarn build --listFiles
run: yarn build --listEmittedFiles
- name: Lint
run: yarn lint
- name: Unit Test
Expand Down
2 changes: 1 addition & 1 deletion packages/koishi-utils/src/cqCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace CQCode {
}

export function stringify (type: string, data: CQCodeData) {
if (type === 'text') return data.text
if (type === 'text') return '' + data.text
let output = '[CQ:' + type
for (const key in data) {
if (data[key]) output += `,${key}=${escape(data[key], true)}`
Expand Down

0 comments on commit af50c85

Please sign in to comment.