feat(platform-browser): add HammerJS lazy-loader symbols to public API (#23943)

PR Close #23943
This commit is contained in:
Jeremy Elbourn 2018-05-16 10:00:33 -07:00 committed by Matias Niemelä
parent 608c3748e8
commit 26fbf1d13c
2 changed files with 6 additions and 1 deletions

View File

@ -14,7 +14,8 @@ export {BrowserTransferStateModule, StateKey, TransferState, makeStateKey} from
export {By} from './dom/debug/by';
export {DOCUMENT} from './dom/dom_tokens';
export {EVENT_MANAGER_PLUGINS, EventManager} from './dom/events/event_manager';
export {HAMMER_GESTURE_CONFIG, HammerGestureConfig} from './dom/events/hammer_gestures';
export {HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerLoader} from './dom/events/hammer_gestures';
export {DomSanitizer, SafeHtml, SafeResourceUrl, SafeScript, SafeStyle, SafeUrl, SafeValue} from './security/dom_sanitization_service';
export * from './private_export';
export {VERSION} from './version';

View File

@ -46,6 +46,8 @@ export declare class EventManager {
/** @experimental */
export declare const HAMMER_GESTURE_CONFIG: InjectionToken<HammerGestureConfig>;
export declare const HAMMER_LOADER: InjectionToken<HammerLoader>;
/** @experimental */
export declare class HammerGestureConfig {
events: string[];
@ -65,6 +67,8 @@ export declare class HammerGestureConfig {
buildHammer(element: HTMLElement): HammerInstance;
}
export declare type HammerLoader = (() => Promise<void>) | null;
/** @experimental */
export declare function makeStateKey<T = void>(key: string): StateKey<T>;