Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 948 Bytes

types.intersection.md

File metadata and controls

25 lines (16 loc) · 948 Bytes

Home > @skunkteam/types > intersection

intersection() function

Intersect the given types.

Signature:

declare function intersection<Types extends OneOrMore<BaseObjectLikeTypeImpl<unknown>>>(
    ...args: [name: string, types: Types] | [types: Types]
): TypeImpl<IntersectionType<Types>>;

Parameters

Parameter Type Description
args [name: string, types: Types] | [types: Types] the optional name and all types to intersect

Returns:

TypeImpl<IntersectionType<Types>>