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
# Basic TypeScript syntax highlighting rules for FishEye/Crucible. | |
# | |
# Put this file to the <FISHEYE_INST>/syntax directory and update the | |
# <FISHEYE_INST>/syntax/filename.map file to contain the following lines: | |
# | |
# "**/*.ts" typescript.def "TypeScript" | |
# | |
# FishEye/Crucible might need to be restarted to have the changes take effect. | |
# | |
# References: |
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
// This Gist is created for the https://stackoverflow.com/questions/48774804/ StackOverflow question | |
interface Icon { src: string; } | |
interface IconSet { | |
[iconName: string]: Icon; | |
} | |
type UiBuilder = <P, S extends IconSet>(iconRegistry: S) => { | |
withIcon<K extends keyof S>(iconName: K): null, | |
}; |