Class TJSSvelteConfigUtil
Index
Constructors
Methods
Constructors
constructor
- new TJSSvelteConfigUtil(): TJSSvelteConfigUtil
Returns TJSSvelteConfigUtil
Methods
Static
isConfig
- isConfig(
config: unknown,
options?: { raiseException?: boolean },
): config is TJSSvelteConfig Validates
config
argument whether it is a valid TJSSvelteConfig.Parameters
Returns config is TJSSvelteConfig
Is the config a valid TJSSvelteConfig.
Static
parseConfig
- parseConfig(config: TJSSvelteConfig, thisArg?: any): 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.