@karmaniverous/smoz
    Preparing search index...

    Function resolveFunctionOptions

    • Resolve options passed to defineFunction into the stored config.

      Fields not derived or defaulted here are carried over unchanged, so a new DefineFunctionOptions field needs no change in this function.

      Parameters

      Returns ResolvedFunctionOptions

      options with functionName, eventType and endpointsRootAbs set and defaults applied

      Error when eventType must be derived but the caller isn't under functions/<eventType>/ of a known event type (measured from appRootAbs, or from the caller's own path when the app config is bundled into the function); when a derived HTTP eventType's method or base path can't be derived; or when a name style needs segments the caller can't provide