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:
polar-lukas
2018-12-03 15:04:41 +01:00
committed by GitHub
parent f15a022416
commit f21619e430
+1 -1
View File
@@ -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[];