New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@types/react-timeout

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-timeout

TypeScript definitions for react-timeout

ts3.7
ts3.8
ts3.9
ts4.0
ts4.1
ts4.2
ts4.3
ts4.4
Source
npmnpm
Version
1.1.3
Version published
Weekly downloads
6.7K
-12.74%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/react-timeout

Summary

This package contains type definitions for react-timeout (https://github.com/plougsgaard/react-timeout).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-timeout.

index.d.ts

// Type definitions for react-timeout 1.1
// Project: https://github.com/plougsgaard/react-timeout
// Definitions by: Kerwyn Rojas <https://github.com/kerwynrg>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

/// <reference types="node" />

import * as React from 'react';

export = ReactTimeout;

declare function ReactTimeout<T>(
    SourceComponent: React.ComponentClass<T> | React.FunctionComponent<T>
): React.ComponentClass<T>;

declare namespace ReactTimeout {
  type Timer = NodeJS.Timer | number;

  type Id = number;

  interface ReactTimeoutProps {
      setTimeout?: ((callback: (...args: any[]) => void, ms: number, ...args: any[]) => Timer) | undefined;
      clearTimeout?: ((timer: Timer) => void) | undefined;
      setInterval?: ((callback: (...args: any[]) => void, ms: number, ...args: any[]) => Id) | undefined;
      clearInterval?: ((id: Id) => void) | undefined;
      setImmediate?: ((callback: (...args: any[]) => void, ...args: any[]) => Id) | undefined;
      clearImmediate?: ((id: Id) => void) | undefined;
      requestAnimationFrame?: ((callback: (...args: any[]) => void) => Id) | undefined;
      cancelAnimationFrame?: ((id: Id) => void) | undefined;
  }
}

Additional Details

  • Last updated: Wed, 20 Oct 2021 21:01:44 GMT
  • Dependencies: @types/react, @types/node
  • Global values: none

Credits

These definitions were written by Kerwyn Rojas.

FAQs

Package last updated on 20 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts