File: MIGRATION.md

package info (click to toggle)
golang-github-withfig-autocomplete-tools 0.0~git20241029.747689a%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,456 kB
  • sloc: javascript: 2,543; python: 734; sh: 20; makefile: 13
file content (13 lines) | stat: -rw-r--r-- 533 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# Migration from `@withfig/autocomplete-tools@1` to `@withfig/autocomplete-tools@2`

In v2 we moved our types to a separate package called `@withfig/autocomplete-types`.
The transition is as simple as installing the new package and changing an entry in your `tsconfig.json`:
```json
{
  "compilerOptions": {
    // you may get some typecheck errors if you are using some node packages like "fs"
    // just include "node" in the below array. Same for "jest", "chai"...and so on
    "types": ["@withfig/autocomplete-types"]
  },
}
```