DefinitelyTyped/types/copy-paste/copy-paste-tests.ts

14 lines
399 B
TypeScript
Raw Permalink Normal View History

2016-01-15 23:30:37 +00:00
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();
2020-05-15 02:20:31 +00:00
CopyPaste.paste((err: Error, content: string) => { return; });