cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

Support `"type"` for extends

Open pokey opened this issue 2 years ago • 0 comments

function getSectionKeyMap<T extends KeyDescriptor["type"]>(type: T) {}

In the above, I'd like to be able to say "type" within KeyDescriptor["type"] to get KeyDescriptor["type"]. Alternately, we could support "value"? Should think about how to get T, and what domains should be

pokey avatar Nov 24 '23 09:11 pokey