I think you want this:
interface FoundationSitesStatic {
Reveal: new (element: Object, options?: IRevealOptions) => Reveal;
}
Which allows you to do what works without TypeScript errors and without compromising type safety!
const popup = new Foundation.Reveal($('#element'));
koral source
share