Skip to content

Instantly share code, notes, and snippets.

@lightsofapollo
Created December 3, 2015 18:30
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 lightsofapollo/2393fb50d4937a6ce1c7 to your computer and use it in GitHub Desktop.
Save lightsofapollo/2393fb50d4937a6ce1c7 to your computer and use it in GitHub Desktop.
type BlobUploadInput = {
stuff: string;
};
class BlobUpload {
stuff: string;
constructor(obj: BlobUploadInput) {
Object.assign(this, obj);
}
}
console.log(new BlobUpload({
stuff: 1
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment