Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Third time's the charm
Make the Omit type (the Pick<> Exclude<> combo) correctly omit the "to" property of springprops
  • Loading branch information
PrecociouslyDigital authored Jul 25, 2018
commit bd990553e2e2f990d62e1c2a1e305cb836a42131
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export class Keyframes<S extends object, DS extends object> extends PureComponen
): (states: object) => (props: object) => Keyframes<S, DS>
static Spring<S extends object, DS extends object>(
states: object
): (props: object) => Keyframes<S | Pick<SpringProps<S,DS>, Exclude<keyof SpringProps<S,DS>, {to:DS}>>, DS>
): (props: object) => Keyframes<S | Pick<SpringProps<S,DS>, Exclude<keyof SpringProps<S,DS>, "to">>, DS>
static Trail<S extends object, DS extends object>(
states: object
): (props: object) => Keyframes<S | TrailProps<S,DS>, DS>
Expand Down