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
Don't be permissive with props
Don't allow `to` on other props objects either
  • Loading branch information
PrecociouslyDigital authored Jul 25, 2018
commit 18d16796a95afd19bbc3b234d59dc388609c1b7c
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ export class Keyframes<S extends object, DS extends object> extends PureComponen
): (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>
): (props: object) => Keyframes<S | Pick<TrailProps<S,DS>, Exclude<keyof TrailProps<S,DS>, "to">>, DS>
static Transition<S extends object, DS extends object>(
states: object
): (props: object) => Keyframes<S | TransitionProps<S,DS>, DS>
): (props: object) => Keyframes<S | Pick<TransitionProps<S,DS>, Exclude<keyof TransitionProps<S,DS>, "to">>, DS>
}