Socket
Socket
Sign inDemoInstall

@react-spring/shared

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-spring/shared - npm Package Compare versions

Comparing version 0.0.1-alpha.0 to 0.0.1-alpha.1

7

globals.d.ts
/// <reference types="react" />
import { SpringInterpolator, InterpolatorConfig } from './types';
interface FrameRequestCallback {
(time: number): void;
}
declare type Props = {

@@ -17,3 +14,3 @@ [key: string]: any;

update: () => boolean;
controllers: any[];
controllers: Map<number, any>;
start(controller: any): void;

@@ -31,3 +28,3 @@ stop(controller: any): void;

export declare let createAnimatedRef: <T extends React.ElementType>(node: React.MutableRefObject<T>, mounted: React.MutableRefObject<boolean>, forceUpdate: () => void) => T | AnimatedRef<T>;
export declare let requestAnimationFrame: ((cb: FrameRequestCallback) => number) | (() => void);
export declare let requestAnimationFrame: ((cb: (time: number) => void) => number) | (() => void);
export declare let cancelAnimationFrame: (id: number) => void;

@@ -34,0 +31,0 @@ export interface AnimatedGlobals {

{
"name": "@react-spring/shared",
"version": "0.0.1-alpha.0",
"homepage": "https://github.com/react-spring/react-spring/packages/shared#readme",
"version": "0.0.1-alpha.1",
"description": "Internal use only",
"keywords": [
"animated",
"animation",
"hooks",
"motion",
"react",
"react-native",
"spring",
"typescript",
"velocity"
],
"homepage": "https://github.com/react-spring/react-spring/tree/master/packages/shared#readme",
"bugs": {

@@ -14,2 +26,4 @@ "url": "https://github.com/react-spring/react-spring/issues"

"sideEffects": false,
"main": "index.cjs.js",
"module": "index.js",
"dependencies": {

@@ -16,0 +30,0 @@ "@babel/runtime": "^7.3.1",

@@ -17,1 +17,11 @@ # @react-spring/shared

Exports the `createStringInterpolator` function (with color support)
## Main module
Import `@react-spring/shared` to access these named imports:
- `Globals` object (updated with its `assign` method)
- `createInterpolator` function
- `is` functions (for runtime type checks)
- Utility hooks (like `useForceUpdate`)
- Every type in `src/types`

@@ -29,2 +29,5 @@ import { Interpolator, ExtrapolateType, InterpolatorConfig } from './interpolation';

};
export interface FrameRequestCallback {
(time: number): void;
}
/**

@@ -31,0 +34,0 @@ * This interpolates one or more `SpringValue` objects.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc