@types/react-timeout
Advanced tools
@@ -23,11 +23,11 @@ // Type definitions for react-timeout 1.1 | ||
| interface ReactTimeoutProps { | ||
| setTimeout?: (callback: (...args: any[]) => void, ms: number, ...args: any[]) => Timer; | ||
| clearTimeout?: (timer: Timer) => void; | ||
| setInterval?: (callback: (...args: any[]) => void, ms: number, ...args: any[]) => Id; | ||
| clearInterval?: (id: Id) => void; | ||
| setImmediate?: (callback: (...args: any[]) => void, ...args: any[]) => Id; | ||
| clearImmediate?: (id: Id) => void; | ||
| requestAnimationFrame?: (callback: (...args: any[]) => void) => Id; | ||
| cancelAnimationFrame?: (id: Id) => void; | ||
| 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; | ||
| } | ||
| } |
| MIT License | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Copyright (c) Microsoft Corporation. | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
| { | ||
| "name": "@types/react-timeout", | ||
| "version": "1.1.1", | ||
| "version": "1.1.2", | ||
| "description": "TypeScript definitions for react-timeout", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-timeout", | ||
| "license": "MIT", | ||
@@ -14,13 +15,15 @@ "contributors": [ | ||
| "main": "", | ||
| "types": "index.d.ts", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
| "directory": "types/react-timeout" | ||
| }, | ||
| "scripts": {}, | ||
| "dependencies": { | ||
| "@types/react": "*", | ||
| "@types/node": "*" | ||
| "@types/node": "*", | ||
| "@types/react": "*" | ||
| }, | ||
| "typesPublisherContentHash": "d6be07c7b166cf246831cafb37154414c8fa4410f122560a1f95d1d3faff8323", | ||
| "typeScriptVersion": "2.8" | ||
| "typesPublisherContentHash": "f8f3b764d9847a9c6a63dec9f9b116e1f045bb4a35f9d48d02ddb37af6e941be", | ||
| "typeScriptVersion": "3.6" | ||
| } |
@@ -8,10 +8,46 @@ # Installation | ||
| # Details | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-timeout | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-timeout. | ||
| ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-timeout/index.d.ts) | ||
| ````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 | ||
| Additional Details | ||
| * Last updated: Mon, 06 Aug 2018 21:55:30 GMT | ||
| * Dependencies: react, node | ||
| /// <reference types="node" /> | ||
| import * as React from 'react'; | ||
| export = ReactTimeout; | ||
| declare function ReactTimeout<T>( | ||
| SourceComponent: React.ComponentClass<T> | React.StatelessComponent<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: Thu, 08 Jul 2021 22:41:40 GMT | ||
| * Dependencies: [@types/react](https://npmjs.com/package/@types/react), [@types/node](https://npmjs.com/package/@types/node) | ||
| * Global values: none | ||
| # Credits | ||
| These definitions were written by Kerwyn Rojas <https://github.com/kerwynrg>. | ||
| These definitions were written by [Kerwyn Rojas](https://github.com/kerwynrg). |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5241
49.49%0
-100%53
211.76%