Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const name = 'some/property';
- {[name]: 'Bob'}
- interface MyInterface {
- [name]: string;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement