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

chore: use better type #471

Closed
wants to merge 1 commit into from
Closed

Conversation

liuseen-l
Copy link
Contributor

No description provided.

Copy link

netlify bot commented Mar 8, 2024

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit ca23476
🔍 Latest deploy log https://app.netlify.com/sites/rolldown-rs/deploys/65eb1e60698054000839e9e8

@@ -9,11 +9,11 @@ export function arraify<T>(value: T | T[]): T[] {
return Array.isArray(value) ? value : [value]
}

export function unimplemented(info?: string): never {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

never would actually be the correct type for this function.

It doesn't ever return a value since it always throws in every condition.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This.

@yyx990803 yyx990803 closed this Mar 9, 2024
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

Successfully merging this pull request may close these issues.

None yet

3 participants