@types/copy-paste
Advanced tools
Comparing version 1.1.30 to 1.1.31
@@ -6,4 +6,2 @@ // Type definitions for copy-paste v1.1.3 | ||
export type CopyCallback = (err: Error) => void; | ||
@@ -14,3 +12,3 @@ export type PasteCallback = (err: Error, content: string) => void; | ||
* Asynchronously replaces the current contents of the clip board with text. | ||
* | ||
* | ||
* @param {T} content Takes either a string, array, object, or readable stream. | ||
@@ -23,3 +21,3 @@ * @return {T} Returns the same value passed in. | ||
* Asynchronously replaces the current contents of the clip board with text. | ||
* | ||
* | ||
* @param {T} content Takes either a string, array, object, or readable stream. | ||
@@ -31,10 +29,9 @@ * @param {CopyCallback} callback will fire when the copy operation is complete. | ||
/** | ||
* Synchronously returns the current contents of the system clip board. | ||
* | ||
* | ||
* Note: The synchronous version of paste is not always availabled. | ||
* An error message is shown if the synchronous version of paste is used on an unsupported platform. | ||
* The asynchronous version of paste is always available. | ||
* | ||
* | ||
* @return {string} Returns the current contents of the system clip board. | ||
@@ -46,5 +43,5 @@ */ | ||
* Asynchronously returns the current contents of the system clip board. | ||
* | ||
* | ||
* @param {PasteCallback} callback The contents of the system clip board are passed to the callback as the second parameter. | ||
*/ | ||
export declare function paste(callback: PasteCallback): void; |
{ | ||
"name": "@types/copy-paste", | ||
"version": "1.1.30", | ||
"description": "TypeScript definitions for copy-paste v1.1.3", | ||
"version": "1.1.31", | ||
"description": "TypeScript definitions for copy-paste", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/copy-paste", | ||
"license": "MIT", | ||
"author": "Tobias Kahlert <https://github.com/SrTobi>", | ||
"contributors": [ | ||
{ | ||
"name": "Tobias Kahlert", | ||
"url": "https://github.com/SrTobi", | ||
"githubUsername": "SrTobi" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/copy-paste" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "fa6281fe1de9d0c0526560104c903a42bede593bffc3177e47c7354d25b2937e" | ||
"typesPublisherContentHash": "7152fea51e540a422fe9a268b0d6689a62b0a980fa6ede1b3c75a18ba5a7ccc8", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -5,15 +5,59 @@ # Installation | ||
# Summary | ||
This package contains type definitions for copy-paste v1.1.3 (https://github.com/xavi-/node-copy-paste). | ||
This package contains type definitions for copy-paste (https://github.com/xavi-/node-copy-paste). | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/copy-paste | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/copy-paste. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/copy-paste/index.d.ts) | ||
````ts | ||
// Type definitions for copy-paste v1.1.3 | ||
// Project: https://github.com/xavi-/node-copy-paste | ||
// Definitions by: Tobias Kahlert <https://github.com/SrTobi> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
Additional Details | ||
* Last updated: Mon, 19 Sep 2016 16:15:24 GMT | ||
* File structure: ProperModule | ||
* Library Dependencies: none | ||
* Module Dependencies: none | ||
export type CopyCallback = (err: Error) => void; | ||
export type PasteCallback = (err: Error, content: string) => void; | ||
/** | ||
* Asynchronously replaces the current contents of the clip board with text. | ||
* | ||
* @param {T} content Takes either a string, array, object, or readable stream. | ||
* @return {T} Returns the same value passed in. | ||
*/ | ||
export declare function copy<T>(content: T): T; | ||
/** | ||
* Asynchronously replaces the current contents of the clip board with text. | ||
* | ||
* @param {T} content Takes either a string, array, object, or readable stream. | ||
* @param {CopyCallback} callback will fire when the copy operation is complete. | ||
* @return {T} Returns the same value passed in. | ||
*/ | ||
export declare function copy<T>(content: T, callback: CopyCallback): T; | ||
/** | ||
* Synchronously returns the current contents of the system clip board. | ||
* | ||
* Note: The synchronous version of paste is not always availabled. | ||
* An error message is shown if the synchronous version of paste is used on an unsupported platform. | ||
* The asynchronous version of paste is always available. | ||
* | ||
* @return {string} Returns the current contents of the system clip board. | ||
*/ | ||
export declare function paste(): string; | ||
/** | ||
* Asynchronously returns the current contents of the system clip board. | ||
* | ||
* @param {PasteCallback} callback The contents of the system clip board are passed to the callback as the second parameter. | ||
*/ | ||
export declare function paste(callback: PasteCallback): void; | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 04 Sep 2023 15:41:13 GMT | ||
* Dependencies: none | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Tobias Kahlert <https://github.com/SrTobi>. | ||
These definitions were written by [Tobias Kahlert](https://github.com/SrTobi). |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5927
0
63
37