Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infer 介绍这里 例子有错误吧? #237

Open
xiaobaichiliangpi opened this issue Jul 8, 2021 · 1 comment
Open

infer 介绍这里 例子有错误吧? #237

xiaobaichiliangpi opened this issue Jul 8, 2021 · 1 comment

Comments

@xiaobaichiliangpi
Copy link

`interface User {
name: string;
age: number;
}

type Func = (user: User) => void;

type Param = ParamType; // Param = User
type AA = ParamType; // string
`
Param 应该是 [User]

@Fa-haxiki
Copy link

`interface User { name: string; age: number; }

type Func = (user: User) => void;

type Param = ParamType; // Param = User type AA = ParamType; // string ` Param 应该是 [User]

我也发现了,提了个PR,#267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants