Last active
January 11, 2018 19:44
-
-
Save curtiswilkinson/6e6bbdeb93e41784289c4db208b44d7e to your computer and use it in GitHub Desktop.
Interface using pick
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Task { | |
id: string, | |
name: string, | |
assignee: string, | |
contacts: any[], //for brevity | |
associatedJob: string, | |
submissionDate: string, | |
allocatedTime: number, | |
expectedCompletion: string, | |
invoiceNumber: string, | |
invoiceDueDate: string, | |
comment: string, | |
taskAddress: string | |
... | |
... x 10 | |
} | |
type PartialTast = Pick<Task, 'id' | 'name' | 'contacts'> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
s/PartialTast/PartialTask/g
?(PS Great article in which this is used; helped me - finally - follow how Pick works.)