Skip to content

Commit

Permalink
Revision 0.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Mar 21, 2023
1 parent 4ec4daa commit 138f222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typebox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,7 @@ export class StandardTypeBuilder extends TypeBuilder {
return (TypeExtends.Extends(left, right) !== TypeExtendsResult.False ? this.Never(options) : TypeClone.Clone(left, options)) as any
}
}
/** `[Standard]` Extracts from left left any type that is assignable to the right */
/** `[Standard]` Extracts from the left type any type that is assignable to the right */
public Extract<L extends TSchema, R extends TSchema>(left: L, right: R, options: SchemaOptions = {}): TExtract<L, R> {
if (TypeGuard.TUnion(left)) {
const narrowed = left.anyOf.filter((inner) => TypeExtends.Extends(inner, right) !== TypeExtendsResult.False)
Expand Down

0 comments on commit 138f222

Please sign in to comment.