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

Complete #469 - new function asserGuard(). #872

Merged
merged 2 commits into from
Nov 17, 2023
Merged

Conversation

samchon
Copy link
Owner

@samchon samchon commented Nov 17, 2023

Added new function typia.assertGuard<T>() function which performs the assertion guard of TypeScript.

export function assertGuard<T>(input: unknown): asserts input is T;
export function assertGuardEquals<T>(input: unknown): asserts input is T;

export function createAssertGuard<T>(): AssertionGuard<T>;
export function createAssertGuardEquals<T>(): AssertionGuard<T>;

export type AssertionGuard<T> = (input: unknown) => asserts input is T;

Added new function `typia.assertGuard<T>()` function which performs the assertion guard of TypeScript.
@samchon samchon added the enhancement New feature or request label Nov 17, 2023
@samchon samchon self-assigned this Nov 17, 2023
Copy link
Owner Author

@samchon samchon left a comment

Choose a reason for hiding this comment

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

No problem on the test automation program.

@samchon samchon merged commit 318fe14 into v5.3 Nov 17, 2023
2 of 3 checks passed
@samchon samchon deleted the features/assertGuard branch November 17, 2023 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant