diff --git a/types/material__drawer/adapter.d.ts b/types/material__drawer/adapter.d.ts index c155a1ea02..5b4da046f9 100644 --- a/types/material__drawer/adapter.d.ts +++ b/types/material__drawer/adapter.d.ts @@ -2,7 +2,7 @@ // Project: https://material.io/components/ // Definitions by: Arthur Groupp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.6 +// TypeScript Version: 3.1 /** * @license @@ -39,30 +39,22 @@ * * @record */ -declare class MDCDrawerAdapter { +export class MDCDrawerAdapter { /** * Adds a class to the root Element. - * @param {string} className */ addClass(className: string): void; /** * Removes a class from the root Element. - * @param {string} className */ removeClass(className: string): void; /** * Returns true if the root Element contains the given class. - * @param {string} className - * @return {boolean} */ hasClass(className: string): boolean; - /** - * @param {!Element} element target element to verify class name - * @param {string} className class name - */ elementHasClass(element: Element, className: string): void; /** @@ -101,5 +93,3 @@ declare class MDCDrawerAdapter { */ releaseFocus(): void; } - -export { MDCDrawerAdapter }; diff --git a/types/material__drawer/constants.d.ts b/types/material__drawer/constants.d.ts index f9f13946c9..bcb4e8131b 100644 --- a/types/material__drawer/constants.d.ts +++ b/types/material__drawer/constants.d.ts @@ -2,7 +2,7 @@ // Project: https://material.io/components/ // Definitions by: Arthur Groupp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.6 +// TypeScript Version: 3.1 /** * Copyright 2016 Google Inc. All Rights Reserved. diff --git a/types/material__drawer/dismissible/foundation.d.ts b/types/material__drawer/dismissible/foundation.d.ts index 9c6fd59eec..d95463f331 100644 --- a/types/material__drawer/dismissible/foundation.d.ts +++ b/types/material__drawer/dismissible/foundation.d.ts @@ -2,7 +2,7 @@ // Project: https://material.io/components/ // Definitions by: Arthur Groupp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.6 +// TypeScript Version: 3.1 /** * @license @@ -31,16 +31,9 @@ import { MDCDrawerAdapter } from '../adapter'; import MDCFoundation from 'material__base/foundation'; import {cssClasses, strings} from '../constants'; -/** - * @extends {MDCFoundation} - */ -declare class MDCDismissibleDrawerFoundation extends MDCFoundation { - /** @return enum {string} */ +export class MDCDismissibleDrawerFoundation extends MDCFoundation { static readonly strings: strings; - - /** @return enum {string} */ static readonly cssClasses: cssClasses; - static readonly defaultAdapter: MDCDrawerAdapter; constructor(adapter: MDCDrawerAdapter); @@ -59,33 +52,26 @@ declare class MDCDismissibleDrawerFoundation extends MDCFoundation, Collin Kostichuk , Arthur Groupp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.6 +// TypeScript Version: 3.1 /** * Copyright 2016 Google Inc. All Rights Reserved. @@ -30,7 +30,7 @@ import * as util from './util'; import createFocusTrap from './focus-trap'; import { FocusTrap } from './focus-trap'; -declare class MDCDrawer extends MDCComponent { +export class MDCDrawer extends MDCComponent { constructor(...args: any); static attachTo(root: Element): MDCDrawer; @@ -49,4 +49,4 @@ declare class MDCDrawer extends MDCComponent // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.6 +// TypeScript Version: 3.1 /** * @license @@ -30,19 +30,14 @@ import { MDCDrawerAdapter } from '../adapter'; import { MDCDismissibleDrawerFoundation } from '../dismissible/foundation'; -/** - * @extends {MDCDismissibleDrawerFoundation} - */ -declare class MDCModalDrawerFoundation extends MDCDismissibleDrawerFoundation { +export class MDCModalDrawerFoundation extends MDCDismissibleDrawerFoundation { /** * Called when drawer finishes open animation. - * @override */ opened(): void; /** * Called when drawer finishes close animation. - * @override */ closed(): void; @@ -51,5 +46,3 @@ declare class MDCModalDrawerFoundation extends MDCDismissibleDrawerFoundation { */ handleScrimClick(): void; } - -export { MDCModalDrawerFoundation };