config.d.ts 995 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { CodeWithSourceMap } from './metadata';
  2. export interface StyleTransformer {
  3. (code: string, url?: string): CodeWithSourceMap;
  4. }
  5. export interface TemplateTransformer {
  6. (code: string, url?: string): CodeWithSourceMap;
  7. }
  8. export interface UrlResolver {
  9. (url: string | null): string | null;
  10. }
  11. export declare const LogLevel: {
  12. Debug: number;
  13. Error: number;
  14. Info: number;
  15. None: number;
  16. };
  17. declare type ValueOf<T> = T[keyof T];
  18. export interface Config {
  19. interpolation: [string, string];
  20. logLevel: ValueOf<typeof LogLevel>;
  21. predefinedDirectives: DirectiveDeclaration[];
  22. resolveUrl: UrlResolver;
  23. transformStyle: StyleTransformer;
  24. transformTemplate: TemplateTransformer;
  25. }
  26. export interface DirectiveDeclaration {
  27. exportAs?: string;
  28. hostAttributes?: string[];
  29. hostListeners?: string[];
  30. hostProperties?: string[];
  31. inputs?: string[];
  32. outputs?: string[];
  33. selector: string;
  34. }
  35. export declare const Config: Config;
  36. export {};