turbo-sync/types.js
2024-10-16 05:44:48 +01:00

29 lines
733 B
JavaScript

// @ts-check
/**
* @typedef {TurboSyncConfigObject[]} TurboSyncConfigArray
*/
/**
* @typedef {object} TurboSyncConfigObject
* @property {string} [title]
* @property {string[] | TurboSyncFileObject[]} [files]
* @property {string[] | TurboSyncFileObject[]} [folders]
* @property {TurboSyncOptions} [options]
*/
/**
* @typedef {object} TurboSyncFileObject
* @property {string} path
* @property {string} [host]
* @property {string} [user]
* @property {string} [ssh_key]
* @property {number} [interval]
*/
/**
* @typedef {object} TurboSyncOptions
* @property {boolean} [delete] - Should files removed be deleted in all destinations?
* @property {string[]} [exclude] - Patterns that should be ignored. Eg "*.log"
*/