wechat-miniprogram / wechat-miniprogram/api-typings
console.group支持不止一个参数
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 803
- Forks
- 117
- Avg merge
- 24m
- Merged PRs (30d)
- 1
Description
环境
- api-typings: 3.4.1
- mac-os: 11.4
- vs-code: 1.58.2
- wechat-dev-tool: 1.05.2107090
问题
以上环境版本的微信开发工具,console输出中,console.group 是支持多个参数的(主要是支持 css style console)
但目前 api-typings 的定义中只有一个 label?: string,导致使用多个参数时会有ts异常提示
group(
/** 分组标记,可选。 */
label?: string
): void
建议至少改为 info / log 这类的 ..args: any[] 的定义
info(
/** 日志内容,可以有任意多个。 */
...args: any[]
): void
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the api-typings declarations for console.group and compare its signature with the existing info or log definitions. Done means the TypeScript definition accepts multiple arguments, including styled console usage, without an erroneous type diagnostic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100