Table of contents
Check out the original file to see the original source.
Unary calls
It adds inlay hints to identifiers.
const nothing = (_it: string) => void 0;
nothing(/* _it: */ "abc");
It adds inlay hints to property access expressions.
const nothing2 = { fn: (_it: string) => void 0 };
nothing2.fn(/* _it: */ "abc");
class AClass {
constructor(_props: string) {}
public aMethod = (_it: string) => void 0;
}
It adds inlay hints to class constructors.
const aClassInstance = new AClass(/* _props: */ "abc");
It adds inlay hints to class methods.
aClassInstance.aMethod(/* _it: */ "def");
N-ary calls
It adds inlay hints to n-ary calls to identifiers.
const naryFn = (_it: string, _it2: number, _it3: boolean) => void 0;
naryFn(/* _it: */ "abc", /* _it2: */ 123, /* _it3: */ false);
It adds inlay hints to n-ary calls to property access expressions.
const naryFnObj = { fn: (_it: string, _it2: number, _it3: boolean) => void 0 };
naryFnObj.fn(/* _it: */ "abc", /* _it2: */ 123, /* _it3: */ false);
class AClass3 {
constructor(_props: string, _props2: number, _props3: boolean) {}
public aMethod3 = (_it: string, _it2: number, _it3: boolean) => void 0;
}
It adds inlay hints to n-ary class constructors.
Notice that the snippet is re-formatted by prettier.
```ts eval --meta
const aClassInstance3 = new AClass3("abc", 123, false);
```
const aClassInstance3 = new AClass3(
/* _props: */ "abc",
/* _props2: */ 123,
/* _props3: */ false
);
It adds inlay hints to n-ary class methods.
aClassInstance3.aMethod3(/* _it: */ "def", /* _it2: */ 123, /* _it3: */ false);
This document used eval-md