Skip to content

Instantly share code, notes, and snippets.

@garbles
Last active March 12, 2017 01:58
Show Gist options
  • Save garbles/90c28a67c3b3c4de412b49d4d82fee07 to your computer and use it in GitHub Desktop.
Save garbles/90c28a67c3b3c4de412b49d4d82fee07 to your computer and use it in GitHub Desktop.
import type {Person} from './types';
export default function setName(person: Person, name: string): Person {
return {
...person,
name
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment