Browse Source

Add comments.

NaotoshiFujita 3 năm trước cách đây
mục cha
commit
0ecac46b94
4 tập tin đã thay đổi với 20 bổ sung11 xóa
  1. 10 0
      dist/types/index.d.ts
  2. 5 0
      src/js/types/components.ts
  3. 5 0
      src/js/types/events.ts
  4. 0 11
      src/js/types/module.d.ts

+ 10 - 0
dist/types/index.d.ts

@@ -583,6 +583,11 @@ interface SyncTarget {
     isParent?: boolean;
 }
 
+/**
+ * The interface for all components.
+ *
+ * @since 3.0.0
+ */
 interface Components {
     [key: string]: BaseComponent;
     Options: OptionsComponent;
@@ -606,6 +611,11 @@ interface Components {
     Transition: TransitionComponent;
 }
 
+/**
+ * The interface for all internal events.
+ *
+ * @since 3.0.0
+ */
 interface EventMap {
     'mounted': () => void;
     'ready': () => void;

+ 5 - 0
src/js/types/components.ts

@@ -19,6 +19,11 @@ import { WheelComponent } from '../components/Wheel/Wheel';
 import { BaseComponent, TransitionComponent } from './general';
 
 
+/**
+ * The interface for all components.
+ *
+ * @since 3.0.0
+ */
 export interface Components {
   [ key: string ]: BaseComponent;
   Options: OptionsComponent;

+ 5 - 0
src/js/types/events.ts

@@ -4,6 +4,11 @@ import { Splide } from '../core/Splide/Splide';
 import { Options } from './options';
 
 
+/**
+ * The interface for all internal events.
+ *
+ * @since 3.0.0
+ */
 export interface EventMap {
   'mounted': () => void;
   'ready': () => void;

+ 0 - 11
src/js/types/module.d.ts

@@ -1,11 +0,0 @@
-// /**
-//  * Explicitly declares the module for extensions.
-//  *
-//  * @since 3.6.7
-//  */
-// declare module '@splidejs/splide' {
-//   interface Components {}
-//   interface Options extends ResponsiveOptions {}
-//   interface ResponsiveOptions {}
-//   interface EventMap {}
-// }