bootstrap-vue
Version:
With more than 85 components, over 45 available plugins, several directives, and 1000+ icons, BootstrapVue provides one of the most comprehensive implementations of the Bootstrap v4 component and grid system available for Vue.js v2.6, complete with extens
16 lines (9 loc) • 472 B
JavaScript
/**
* SSR safe types
*/
import { hasWindowSupport } from './env'
const w = hasWindowSupport ? window : {}
export const Element = hasWindowSupport ? w.Element : class Element extends Object {}
export const HTMLElement = hasWindowSupport ? w.HTMLElement : class HTMLElement extends Element {}
export const SVGElement = hasWindowSupport ? w.SVGElement : class SVGElement extends Element {}
export const File = hasWindowSupport ? w.File : class File extends Object {}