didi / didi/LogicFlow

[Feature]: `h` 函数无法类型推导,需要显性安装 `preact` 库才可以

Open
#2,068 0 comments 0 reactions 0 assignees View on GitHub
type:feature-require type:integration
Dominant language
TypeScript
Stars
11.7k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

### 背景&目的

![Image](https://github.com/user-attachments/assets/34cae58c-f8cc-44c1-a92f-7ec7ed0b99b0)

是不是因为直接这么导出导致无法推导,是不是二封一下或者 TS 是否有什么方式能解决类似的问题。这样在外部就无需显性安装 `preact` 库了,以免版本不同出现意想不到的问题。

![Image](https://github.com/user-attachments/assets/c11e3666-c50e-4a68-a8c0-348cf8a66132)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.