Add newly documented props to makeup-expander defs (#33847)

* Fix callback arguments type

* Add @types/marko definitions

* Add app-module-path definitions

* Add newly documented props to makeup-expander defs
This commit is contained in:
Timur Manyanov
2019-03-13 10:31:56 -07:00
committed by Wesley Wigham
parent 18701d11db
commit dfd2efad80
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for makeup-expander 0.4
// Type definitions for makeup-expander 0.6
// Project: https://github.com/makeup-js/makeup-expander
// Definitions by: Timur Manyanov <https://github.com/darkwebdev>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -16,6 +16,8 @@ declare namespace Expander {
expandOnHover?: boolean;
focusManagement?: string | null;
hostSelector?: string;
expandedClass?: string;
simulateSpacebarClick?: boolean;
}
}
@@ -3,7 +3,8 @@ import Expander = require('makeup-expander');
const widgetEl: HTMLElement | null = document.querySelector('.expander');
const options: Expander.Options = {
expandOnClick: true
expandOnClick: true,
expandedClass: 'widget--expanded'
};
if (widgetEl) {