source: trip-planner-front/node_modules/@angular/material/icon/testing/fake-icon-registry.d.ts@ 59329aa

Last change on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { OnDestroy } from '@angular/core';
9import { MatIconRegistry } from '@angular/material/icon';
10import { Observable } from 'rxjs';
11declare type PublicApi<T> = {
12 [K in keyof T]: T[K] extends (...x: any[]) => T ? (...x: any[]) => PublicApi<T> : T[K];
13};
14/**
15 * A null icon registry that must be imported to allow disabling of custom
16 * icons.
17 */
18export declare class FakeMatIconRegistry implements PublicApi<MatIconRegistry>, OnDestroy {
19 addSvgIcon(): this;
20 addSvgIconLiteral(): this;
21 addSvgIconInNamespace(): this;
22 addSvgIconLiteralInNamespace(): this;
23 addSvgIconSet(): this;
24 addSvgIconSetLiteral(): this;
25 addSvgIconSetInNamespace(): this;
26 addSvgIconSetLiteralInNamespace(): this;
27 registerFontClassAlias(): this;
28 classNameForFontAlias(alias: string): string;
29 getDefaultFontSetClass(): string;
30 getSvgIconFromUrl(): Observable<SVGElement>;
31 getNamedSvgIcon(): Observable<SVGElement>;
32 setDefaultFontSetClass(): this;
33 addSvgIconResolver(): this;
34 ngOnDestroy(): void;
35 private _generateEmptySvg;
36}
37/** Import this module in tests to install the null icon registry. */
38export declare class MatIconTestingModule {
39}
40export {};
Note: See TracBrowser for help on using the repository browser.