UNPKG

native-fn

Version:
17 lines (16 loc) 635 B
export declare interface CubicBezierParams { x1: number; y1: number; x2: number; y2: number; } export declare interface LinearPoint { position: number; value: number; } export declare type CubicBezierSyntax = `cubic-bezier(${string})`; export declare type LinearSyntax = `linear(${string})`; export declare type StepSyntax = `steps(${string})`; export declare type EasingSyntax = CubicBezierSyntax | LinearSyntax | StepSyntax; export declare type EasingFunction = (t: number) => number; export declare type EasingKeyword = 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'step-start' | 'step-end';