// @strict: true // Repro from #31086 type UserArgs = { select?: boolean }; type Subset = { [key in keyof T]: key extends keyof U ? T[key] : never }; declare function withBoundary(args?: Subset): T; declare function withoutBoundary(args?: T): T; const boundaryResult = withBoundary({ select: true, }); const withoutBoundaryResult = withoutBoundary({ select: true, });