mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
604 B
TypeScript
22 lines
604 B
TypeScript
// Type definitions for angular-clipboard v1.5
|
|
// Project: https://github.com/omichelsen/angular-clipboard
|
|
// Definitions by: Bradford Wagner <https://github.com/bradfordwagner/>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/**
|
|
* Definition of the Clipboard Service
|
|
*/
|
|
export interface ClipboardService {
|
|
/**
|
|
* tells us whether or not angular-clipboard is supported
|
|
*/
|
|
supported: boolean;
|
|
|
|
/**
|
|
* copies text to a clipboard
|
|
* @param text the text to be copied to the clipboard
|
|
*/
|
|
copyText(text: string): void;
|
|
}
|