Skip to main content

git-sync-js / interface

Module: interface

Table of contents

Enumerations

Interfaces

Variables

Variables

stepsAboutChange

Const stepsAboutChange: GitStep[]

Steps that indicate we have new files, so we can restart our wiki to reload changes.

Example

<pre><code>
// (inside a promise)
let hasChanges = false;
observable?.subscribe({
next: (messageObject) => {
if (messageObject.level === 'error') {
return;
}
const { meta } = messageObject;
if (typeof meta === 'object' && meta !== null && 'step' in meta && stepsAboutChange.includes((meta as { step: GitStep }).step)) {
hasChanges = true;
}
},
complete: () => {
resolve(hasChanges);
},
});
</code></pre>

Defined in

src/interface.ts:96