Class TJSSvelteConfigUtil
Index
Constructors
Methods
Constructors
constructor
- new TJSSvelte
Config (): TJSSvelteConfigUtilUtil Returns TJSSvelteConfigUtil
Methods
Static
isConfig
- is
Config (config, options?): config is TJSSvelteConfig Validates
config
argument whether it is a valid TJSSvelteConfig.Parameters
- config: unknown
The potential config object to validate.
Optional
options: {
raiseException?: boolean;
}Options.
Optional
raiseException ?: booleanIf validation fails raise an exception.
Returns config is TJSSvelteConfig
Is the config a valid TJSSvelteConfig.
- config: unknown
Static
parseConfig
- parse
Config (config, thisArg?): TJSSvelteConfig Parses a TyphonJS Svelte config object ensuring that classes specified are Svelte components and props are set correctly.
Parameters
- config: TJSSvelteConfig
Svelte config object.
Optional
thisArg: anyThis
reference to set for invoking any props function.
Returns TJSSvelteConfig
The processed Svelte config object.
- config: TJSSvelteConfig
Provides utilities to verify and parse TJSSvelteConfig configuration objects.