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

fix(fast_check): use as never instead of as any #424

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Mar 28, 2024

This works in more scenarios.

export type NeverType = never;
/**
 * This should have `return {} as never` instead of `as any`, which would error when type checking.
 */
export function myFunction(): NeverType {
  return {} as never;
}

@dsherret dsherret merged commit 96e4347 into denoland:main Mar 29, 2024
4 checks passed
@dsherret dsherret deleted the fix_fast_check_as_never branch March 29, 2024 05:25
dsherret added a commit to denoland/deno that referenced this pull request Mar 31, 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.

2 participants