DefinitelyTyped/angular-clipboard/index.d.ts
Bradford Wagner 215055b6c6 adding angular clipboard (#12458)
* adding angular clipboard

* adding tests

* fixing unit tests

* Update angular-clipboard-tests.ts

triggering build

* adhering to the no interface I convention

* just using a module now

* strictNullChecks: true, and removing declare module
2016-11-09 00:20:32 +09:00

21 lines
577 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
/**
* 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;
}