Skip to content

Instantly share code, notes, and snippets.

@oleersoy
Created August 7, 2018 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oleersoy/6167eaa4427b2b22131488e1629ace30 to your computer and use it in GitHub Desktop.
Save oleersoy/6167eaa4427b2b22131488e1629ace30 to your computer and use it in GitHub Desktop.
Partial Article
interface Product {
name: string;
description: string;
}
let currentProduct: Product = {
name: "FS2000",
description: "Hippie Control"
};
function update1(product: Product) {
Object.assign(currentProduct, product);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment