• Squatch.js can't start safely making operations until it's "ready". This function detects that state.

    Parameters

    • fn: (() => any)

      A callback once Squatch.js is ready.

        • (): any
        • Returns any

    Returns void

    Example

    squatch.ready(function() {
    console.log("ready!");
    squatch.api().upsertUser({ ... });
    });

Generated using TypeDoc