Created
August 2, 2019 17:52
-
-
Save AvocadoVenom/45322e335dd4ac7d042edb6b4d3e7972 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| export class Filters { | |
| public readonly format = 'JSON'; | |
| constructor( | |
| public zone: 'ASI' | 'EUR' | 'USA', | |
| public currency: 'EUR' | 'USD', | |
| public userId: number | |
| ) { } | |
| } | |
| export type EditableFilters = keyof Omit<Filters, 'format'>; | |
| // Typescript version lower than 3.5 | |
| // export type EditableFilters = keyof Pick<Filters, Exclude<keyof Filters, 'format'>>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment