Skip to content

Instantly share code, notes, and snippets.

@xyclos
Last active September 28, 2019 19:29
Show Gist options
  • Save xyclos/c4098217fd9bc8219cf9a229e661b606 to your computer and use it in GitHub Desktop.
Save xyclos/c4098217fd9bc8219cf9a229e661b606 to your computer and use it in GitHub Desktop.
interface String {
copyTo(dest: string) : void
}
class Source extends String implements String {
copyTo(dest: string) {
return copyFile(dest, this.valueOf())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment