@cardboard-box/ngx-box
Version:
A collection of useful directives, components and services for angular
26 lines (25 loc) • 921 B
TypeScript
import * as i0 from "@angular/core";
export declare class ConfigurationService {
private _token;
get apiUrl(): string;
get isProd(): boolean;
get token(): string | undefined;
set token(value: string | undefined);
get SkipAuthUrls(): string[];
get corsFallback(): string;
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationService>;
}
export interface IStorageVar<T> {
get value(): T;
set value(item: T | undefined);
}
export declare class LocalStorageVar<T> implements IStorageVar<T> {
defValue: T;
name: string;
fun?: ((val?: T) => void) | undefined;
constructor(defValue: T, name: string, fun?: ((val?: T) => void) | undefined);
get value(): T;
set value(item: T | undefined);
convertType(value?: string | null): string | number | boolean | T;
}