Skip to content

TypeScript Intellisense

To enable validation and autocompletion for your configuration file, you must use a JavaScript config file and annotate in keeping with the below example:

.syncpackrc.js
// @ts-check
/** @type {import("syncpack").RcFile} */
const config = {
versionGroups: [
{
dependencies: ['@types/node'],
packages: ['**'],
pinVersion: '14.18.36',
},
{
dependencies: ['chalk'],
packages: ['**'],
pinVersion: '4.1.2',
},
],
};
module.exports = config;