mituri

[ng] dictionary colors

Mar 30th, 2022
1,398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export type TColor =
  2.   'blue' |
  3.   'orange' |
  4.   'green' |
  5.   'red'
  6.  
  7. // ./dictionaries
  8. export const colorNames: {[key in TColor]: TColor} = {
  9.   blue: 'blue',
  10.   orange: 'orange',
  11.   green: 'green',
  12.   red: 'red',
  13. }
  14.  
  15.  
Advertisement
Add Comment
Please, Sign In to add comment