@react-spring/core
Advanced tools
Comparing version 9.4.5-beta.1 to 9.4.5-beta.2
@@ -10,2 +10,2 @@ import { ReactNode } from 'react'; | ||
}; | ||
export declare function Trail<Item, Props extends TrailComponentProps<Item>>({ items, children, ...props }: Props & Valid<Props, TrailComponentProps<Item, Props>>): ({} | null | undefined)[]; | ||
export declare function Trail<Item, Props extends TrailComponentProps<Item>>({ items, children, ...props }: Props & Valid<Props, TrailComponentProps<Item, Props>>): (string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | null | undefined)[]; |
@@ -17,6 +17,6 @@ import { FluidValue } from '@react-spring/shared'; | ||
export interface Interpolator { | ||
<In extends ReadonlyArray<any>, Out>(parents: In, interpolator: (...args: Interpolated<In>) => Out): Interpolation<Out>; | ||
<In, Out>(parent: FluidValue<In> | In, interpolator: InterpolatorFn<In, Out>): Interpolation<Out>; | ||
<Input extends ReadonlyArray<any>, Output>(parents: Input, interpolator: (...args: Interpolated<Input>) => Output): Interpolation<Output>; | ||
<Input, Output>(parent: FluidValue<Input> | Input, interpolator: InterpolatorFn<Input, Output>): Interpolation<Output>; | ||
<Out>(parents: OneOrMore<FluidValue>, config: InterpolatorConfig<Out>): Interpolation<Animatable<Out>>; | ||
<Out>(parents: OneOrMore<FluidValue<number>> | FluidValue<number[]>, range: readonly number[], output: readonly Constrain<Out, Animatable>[], extrapolate?: ExtrapolateType): Interpolation<Animatable<Out>>; | ||
} |
@@ -12,3 +12,3 @@ import { InterpolatorArgs, InterpolatorFn } from '@react-spring/types'; | ||
*/ | ||
export declare class Interpolation<In = any, Out = any> extends FrameValue<Out> { | ||
export declare class Interpolation<Input = any, Output = any> extends FrameValue<Output> { | ||
/** The source of input values */ | ||
@@ -21,3 +21,3 @@ readonly source: unknown; | ||
/** The function that maps inputs values to output */ | ||
readonly calc: InterpolatorFn<In, Out>; | ||
readonly calc: InterpolatorFn<Input, Output>; | ||
/** The inputs which are currently animating */ | ||
@@ -27,5 +27,5 @@ protected _active: Set<FluidValue<any, any>>; | ||
/** The source of input values */ | ||
source: unknown, args: InterpolatorArgs<In, Out>); | ||
source: unknown, args: InterpolatorArgs<Input, Output>); | ||
advance(_dt?: number): void; | ||
protected _get(): Out; | ||
protected _get(): Output; | ||
protected _start(): void; | ||
@@ -32,0 +32,0 @@ protected _attach(): void; |
{ | ||
"name": "@react-spring/core", | ||
"version": "9.4.5-beta.1", | ||
"version": "9.4.5-beta.2", | ||
"main": "dist/react-spring-core.cjs.js", | ||
@@ -34,6 +34,6 @@ "module": "dist/react-spring-core.esm.js", | ||
"dependencies": { | ||
"@react-spring/animated": "~9.4.5-beta.1", | ||
"@react-spring/rafz": "~9.4.5-beta.1", | ||
"@react-spring/shared": "~9.4.5-beta.1", | ||
"@react-spring/types": "~9.4.5-beta.1" | ||
"@react-spring/animated": "~9.4.5-beta.2", | ||
"@react-spring/rafz": "~9.4.5-beta.2", | ||
"@react-spring/shared": "~9.4.5-beta.2", | ||
"@react-spring/types": "~9.4.5-beta.2" | ||
}, | ||
@@ -40,0 +40,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
264110
8135