fix: void and infer type #1

Closed
Saul-Mirone wants to merge 3 commits from main into main
Saul-Mirone commented 2022-11-11 04:34:47 +01:00 (Migrated from github.com)

This PR fix two cases which will cause error now:

// 1. void type will cause error
const fn = (): void => {}

// 2. infer type will cause error
type InferParams<T> = T extends Array<infer U> ? U : never;
This PR fix two cases which will cause error now: ```ts // 1. void type will cause error const fn = (): void => {} // 2. infer type will cause error type InferParams<T> = T extends Array<infer U> ? U : never; ```
marijnh commented 2022-11-11 09:26:19 +01:00 (Migrated from github.com)

Merged the void handling in 2af2e4f, did something a bit different for inferred parameters in 6b3ecffc0a

Merged the void handling in 2af2e4f, did something a bit different for inferred parameters in 6b3ecffc0a19ef87588a4
Saul-Mirone commented 2022-11-11 10:02:49 +01:00 (Migrated from github.com)

👍 Cool, do you have a release plan for them?

> 👍 Cool, do you have a release plan for them?
marijnh commented 2022-11-11 10:09:30 +01:00 (Migrated from github.com)

They have already been tagged as 0.1.4

They have already been tagged as 0.1.4

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
marijn/getdocs-ts!1
No description provided.