mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
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:
committed by
Wesley Wigham
parent
18701d11db
commit
dfd2efad80
Vendored
+3
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user