mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
483 B
TypeScript
16 lines
483 B
TypeScript
/// <reference path="../node/node.d.ts" />
|
|
/// <reference path="copy-paste.d.ts" />
|
|
|
|
import * as CopyPaste from 'copy-paste';
|
|
|
|
class TestClass {}
|
|
|
|
let strRet: string = CopyPaste.copy("content");
|
|
strRet = CopyPaste.copy("content", (err: Error) => { return; });
|
|
|
|
|
|
let objRet: TestClass = CopyPaste.copy(new TestClass());
|
|
objRet = CopyPaste.copy(new TestClass(), (err: Error) => { return; });
|
|
|
|
strRet = CopyPaste.paste();
|
|
CopyPaste.paste((err: Error, content: string) => { return; }); |