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 #695 - support recursive intersection type #699

Merged
merged 2 commits into from
Jun 30, 2023
Merged

Fix #695 - support recursive intersection type #699

merged 2 commits into from
Jun 30, 2023

Commits on Jun 30, 2023

  1. Configuration menu
    Copy the full SHA
    12536d3 View commit details
    Browse the repository at this point in the history
  2. Fix #695 - support recursive intersection type.

    `typia` could not validate recursive intersection type like below. Of course, below type is an extremely crazy case, but as goal of `typia` is to supporting every TypeScript types, I've fixed it.
    
    ```typescript
    export type ISetupConfig =
      | ({
          type: 'Main';
        } & ISetupConfigMain)
      | ({
          type: 'Before';
        } & ISetupConfigBefore)
      | ({
          type: 'After';
        } & ISetupConfigAfter);
    
    export type ISetupConfigMain = {
      content: ISetupConfig;
    };
    
    export type ISetupConfigBefore = {
      content: ISetupConfig;
    };
    
    export type ISetupConfigAfter = {
      content: ISetupConfig;
    };
    ```
    samchon committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    a5346a7 View commit details
    Browse the repository at this point in the history