Sask Vaccine Guide Code Docs
    Preparing search index...

    Interface iWelcomeFactController

    interface iWelcomeFactController {
        getFact(rerun: boolean): Promise<{ fact: string; rerun: boolean }>;
        updateFactList(): Promise<number>;
    }

    Implemented by

    Index

    Methods

    • Async

      Gets a fact from the database using the current language.

      If no fact is retrieved a standard message is sent as well as a flag to tell the hook to rerun the function.

      Parameters

      • rerun: boolean

        if the function failed to give good results the first time

      Returns Promise<{ fact: string; rerun: boolean }>

      An object containing the fact and whether the function should run again. The second run is only needed on the first

    • Async

      Gets and parses the remote fact list, then updates the local fact list.

      Returns Promise<number>

      the number of facts

      Requires an internet connection