/universal-twoslash

twoslash ^? for any language

Primary LanguageTypeScriptMIT LicenseMIT

universal-twoslash

twoslash ^? for any language

usage

just write a line comment with ^? and it'll add an inlay hint with the hover text of the token above.

const fn = () => "result" as const;
const _ = fn();
//    ^? const _: "result"
def fn():
    return 'result'
___ = fn()
# ^? (variable) ___: Literal['result']