This repository was archived by the owner on Jul 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +155
-69
lines changed Expand file tree Collapse file tree 4 files changed +155
-69
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import Input from './ui/Input';
4
4
import * as React from 'react' ;
5
5
import EventDispatcher from './framework/EventDispatcher' ;
6
6
import PageManager from './framework/pageManager/PageManager' ;
7
+ import JSFunctions from './libs/JSFunctions' ;
8
+ import StringFunctions from './libs/StringFunctions' ;
7
9
8
10
9
11
@@ -31,4 +33,17 @@ var framework:frameworkModel = {
31
33
32
34
33
35
34
- export { ui , framework } ;
36
+
37
+
38
+ interface libsModel {
39
+ JSFunctions :typeof JSFunctions ,
40
+ StringFunctions :typeof StringFunctions
41
+ }
42
+
43
+ var libs :libsModel = {
44
+ JSFunctions :JSFunctions ,
45
+ StringFunctions :StringFunctions ,
46
+ }
47
+
48
+
49
+ export { ui , framework , libs } ;
Original file line number Diff line number Diff line change 1
- var JSFunctions = { } ;
1
+ interface JSFunctionsModel {
2
+ objectToURIVars :typeof objectToURIVars
3
+ }
4
+
5
+ var JSFunctions :JSFunctionsModel = {
6
+ objectToURIVars :objectToURIVars
7
+ } ;
2
8
3
9
/**@description This function can convert your objecs to URIVariables string */
4
- JSFunctions . objectToURIVars ( obj = { } )
10
+ function objectToURIVars ( obj : any = { } )
5
11
{
6
12
//https://stackoverflow.com/questions/6566456/how-to-serialize-an-object-into-a-list-of-url-query-parameters
7
- var str = "" ;
13
+ var str : string = "" ;
8
14
for ( var key in obj ) {
9
15
if ( str != "" ) {
10
16
str += "&" ;
You can’t perform that action at this time.
0 commit comments