ts-satisfactory-plugin

1.0.2 • Public • Published

ts-satisfactory-plugin

A TypeScript Language Service Plugin that satisfies you.

Screenshot of how ts-satisfies-plugin works

This plugin provides inlay hints for expressions constrained by the satisfies syntax.

This is especially helpful when a function has a satisfies constraint. With this plugin, an inlay hint for the satisfies constraint is shown right above its declaration.

You often want to see other function interface and satisfies constraint at the same time. This plugin is here fore you.

Installation

Install with your package manager.

npm i -D ts-satisfactory-plugin

Add this plugin to your tsconfig.json.

{
  "compilerOptions": {
    // ...
    "plugins": [
      {
        "name": "ts-satisfactory-plugin"
      }
    ]
  }
}

Options

minLines: number

"plugins": [
  {
    "name": "ts-satisfactory-plugin",
    "minLines": 3
  }
]

Minimum number of lines occupied by an expression in order for an inlay hint to appear.

Default value: 1 (inlay hints shown to all satisfies-constrained expressions)

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i ts-satisfactory-plugin

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

7.55 kB

Total Files

5

Last publish

Collaborators

  • uhyo