Provides utilities to verify and parse TJSSvelteConfig configuration objects.

Constructors

Methods

Constructors

Methods

  • Validates config argument whether it is a valid TJSSvelteConfig.

    Parameters

    • config: unknown

      The potential config object to validate.

    • Optionaloptions: {
          raiseException?: boolean;
      }

      Options.

      • OptionalraiseException?: boolean

        If validation fails raise an exception.

    Returns config is TJSSvelteConfig

    Is the config a valid TJSSvelteConfig.

    Any validation error when raiseException is enabled.

  • Parses a TyphonJS Svelte config object ensuring that classes specified are Svelte components and props are set correctly.

    Parameters

    • config: TJSSvelteConfig

      Svelte config object.

    • OptionalthisArg: any

      This reference to set for invoking any props function.

    Returns TJSSvelteConfig

    The processed Svelte config object.