Skip to content

Instantly share code, notes, and snippets.

@DethAriel
DethAriel / typescript.def
Created September 7, 2016 00:43
Basic TypeScript syntax highlighting rules for FishEye/Crucible
# 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 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,
};