jails-js 6.3.3 → 6.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +11 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jails-js",
3
- "version": "6.3.3",
3
+ "version": "6.3.4",
4
4
  "description": "Jails - Elegant and Minimalistic Javascript Application Library",
5
5
  "types": "types.d.ts",
6
6
  "module": "./dist/index.js",
package/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  type EventCallback = ( Event: Event, data?:any ) => void
2
2
 
3
3
  export declare const templateConfig: (options: any) => void;
4
- export declare const register: (name: string, module: Module, dependencies?: any) => void
4
+ export declare const register: (name: string, module: any, dependencies?: any) => void
5
5
  export declare const start: (target?: HTMLElement) => void;
6
6
  export declare const subscribe:( subject: string, callback: (data:any) => void ) => Function
7
7
  export declare const publish: ( subject: string, data :any ) => void
@@ -36,6 +36,16 @@ export type Component = {
36
36
  trigger( eventName: string, selector :string, data: any ): void
37
37
 
38
38
  innerHTML( target: HTMLElement | string, html?: string ) : void
39
+
40
+ dataset( target: HTMLElement, key: string ) : any
41
+
42
+ dataset( key: string ) : any
43
+
44
+ attr( target?: HTMLElement ) : {
45
+ change : ( attribute: string, callback: Function ) => void
46
+ disconnect : ( callback: Function ) => void
47
+ }
48
+
39
49
  }
40
50
 
41
51
  export type Model = {