Skip to content

Commit

Permalink
Merge pull request #809 from fabian-hiller/feat-nested-variants
Browse files Browse the repository at this point in the history
Improve performance and issues for nested variants
  • Loading branch information
fabian-hiller authored Sep 1, 2024
2 parents 5e1dcda + 139d865 commit 0dfd1bd
Show file tree
Hide file tree
Showing 12 changed files with 1,122 additions and 198 deletions.
1 change: 1 addition & 0 deletions library/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to the library will be documented in this file.
## vX.X.X (Month DD, YYYY)

- Change `reference` property of all action base types to be less strict (issue #799)
- Change implementation of `variant` and `variantAsync` to improve performance and issues generation for nested variants with different discriminators (pull request #809)

## v0.40.0 (August 29, 2024)

Expand Down
4 changes: 2 additions & 2 deletions library/src/schemas/variant/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export interface VariantIssue extends BaseIssue<unknown> {
/**
* Variant option schema type.
*/
interface VariantOptionSchema<TKey extends string>
export interface VariantOptionSchema<TKey extends string>
extends BaseSchema<unknown, unknown, VariantIssue | BaseIssue<unknown>> {
readonly type: 'variant';
readonly reference: typeof variant;
Expand All @@ -62,7 +62,7 @@ interface VariantOptionSchema<TKey extends string>
/**
* Variant option schema async type.
*/
interface VariantOptionSchemaAsync<TKey extends string>
export interface VariantOptionSchemaAsync<TKey extends string>
extends BaseSchemaAsync<unknown, unknown, VariantIssue | BaseIssue<unknown>> {
readonly type: 'variant';
readonly reference: typeof variantAsync;
Expand Down

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion library/src/schemas/variant/utils/_discriminators/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion library/src/schemas/variant/utils/index.ts

This file was deleted.

Loading

0 comments on commit 0dfd1bd

Please sign in to comment.