Skip to content

Commit 5784f11

Browse files
Update type definitions
State is optional on keyframes when you have a default animation; delay was missing on SpringProps
1 parent 081d632 commit 5784f11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ interface SpringProps<S extends object, DS extends object = {}> {
8585
* @default undefined
8686
*/
8787
inject?: any
88+
/**
89+
* Animation start delay, optional
90+
*/
91+
delay?: number
8892
}
8993

9094
export const config: {
@@ -227,7 +231,7 @@ export class ParallaxLayer<
227231
> extends PureComponent<ParallaxLayerProps<S, DS>> {}
228232

229233
interface KeyframesProps<S extends object, DS extends object = {}> {
230-
state: string
234+
state?: string
231235
}
232236

233237
export class Keyframes<S extends object, DS extends object> extends Component<

0 commit comments

Comments
 (0)