Reference Stork Configuration Docs

This commit is contained in:
Sam Carlton 2022-05-17 14:04:03 -05:00
parent 12d62f6e85
commit 3b60fef8cb

View file

@ -10,8 +10,13 @@ export class StorkClient {
this.name = options.name || 'index' this.name = options.name || 'index'
this.url = options.url || storkIndexRelativeURL this.url = options.url || storkIndexRelativeURL
// Configuration - https://github.com/jameslittle230/stork/blob/ff49f163db06734e18ab690c188b45a3c68442ae/js/config.ts#L4 // Configuration Reference - https://stork-search.net/docs/js-ref#showProgress
this.config = options.config || {} // Example - https://github.com/jameslittle230/stork/blob/ff49f163db06734e18ab690c188b45a3c68442ae/js/config.ts#L4
this.config = {
minimumQueryLength: 1,
showScores: true,
...options.config || {}
}
// Stork instance // Stork instance
this.stork = options.stork || null this.stork = options.stork || null