Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Noah Encke <78610362+noencke@users.noreply.github.com>
  • Loading branch information
CraigMacomber and noencke committed Oct 10, 2023
1 parent 92b8aa0 commit cbc9f19
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ export type NormalizeStructFields<T extends Fields | undefined> = NormalizeStruc
*
* These extends constraints only serve as documentation:
* to avoid breaking compilation, this type has to not actually enforce anything, and thus is just `unknown`.
* Therefor the type safety is the responsibility of the user of the API.
* Therefore the type safety is the responsibility of the user of the API.
* @alpha
*/
export type Unenforced<_DesiredExtendsConstraint> = unknown;

{
type _check2 = requireAssignableTo<TreeSchema, Unenforced<TreeSchema>>;
type _check = requireAssignableTo<TreeSchema, Unenforced<TreeSchema>>;
}

/**
Expand Down Expand Up @@ -310,7 +310,7 @@ export class FieldSchema<

/**
* Constructs a FieldSchema.
* @remarks
* @privateRemarks
* Alias for the constructor, but with extends clause for the `Types` parameter that {@link FieldSchema} can not have (due to recursive type issues).
*/
public static create<Kind extends FieldKind, const Types extends AllowedTypes>(
Expand Down

0 comments on commit cbc9f19

Please sign in to comment.