mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
make iframeResizer default export
"iframeResizer" is the default export of the typed library. Hence it should also be declared such. If you try to require iframeResizer as AMD module, the function "iframeResizer" is not provided within an object but as function. Using the provided types results in an undefined propery "iframeResizer" on the "define"d object.
This commit is contained in:
Vendored
+1
-1
@@ -274,4 +274,4 @@ export interface IFrameScrollData {
|
||||
y: number;
|
||||
}
|
||||
|
||||
export function iframeResizer(options: IFrameOptions, target: string | HTMLElement): IFrameComponent[];
|
||||
export default function iframeResizer(options: IFrameOptions, target: string | HTMLElement): IFrameComponent[];
|
||||
|
||||
Reference in New Issue
Block a user