Skip to content

Commit

Permalink
fix(types): detection of custom html tags (#7055)
Browse files Browse the repository at this point in the history
  • Loading branch information
GNURub authored Sep 28, 2023
1 parent ecfb3fb commit c55f76d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/swiper-element.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { SwiperOptions, Swiper } from './types/index.d.ts';
import { Swiper, SwiperOptions } from './types/index.d.ts';

declare const register: () => void;

Expand Down Expand Up @@ -43,4 +43,12 @@ interface SwiperSlide extends HTMLElement {
lazy: string | boolean;
}

export { register, SwiperContainer, SwiperSlide };
declare global {
interface HTMLElementTagNameMap {
'swiper-container': SwiperContainer;
'swiper-slide': SwiperSlide;
}
}

export { SwiperContainer, SwiperSlide, register };

0 comments on commit c55f76d

Please sign in to comment.