UNPKG

noodl-loader

Version:

Loader for noodl applications

24 lines (23 loc) 935 B
import type { LiteralUnion } from 'type-fest'; import KeyValueCache from './cache/key-value-cache'; import type NoodlConfig from './config'; type KeyOfCadlEndpoint = 'assetsUrl' | 'baseUrl' | 'fileSuffix' | 'languageSuffix' | 'preload' | 'page' | 'startPage'; declare class NoodlCadlEndpoint extends KeyValueCache<LiteralUnion<KeyOfCadlEndpoint, string>> { #private; constructor(config?: NoodlConfig); get assetsUrl(): string; set assetsUrl(assetsUrl: string); get baseUrl(): string; set baseUrl(baseUrl: string); get startPage(): string; createAssetURL(filename: string): string; preloadExists(value: string): boolean; pageExists(value: string): boolean; getPreload(): string[]; getPages(): string[]; getURL(name: string): string; setConfig(config: NoodlConfig | null): this; toJSON(): any; toString(): string; } export default NoodlCadlEndpoint;