Home > @skunkteam/types > intersection
Intersect the given types.
Signature:
declare function intersection<Types extends OneOrMore<BaseObjectLikeTypeImpl<unknown>>>(
...args: [name: string, types: Types] | [types: Types]
): TypeImpl<IntersectionType<Types>>;
Parameter | Type | Description |
---|---|---|
args | [name: string, types: Types] | [types: Types] | the optional name and all types to intersect |
Returns:
TypeImpl<IntersectionType<Types>>