-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add all typescript types for web-js #68
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"include": [ | ||
"packages/**/*" | ||
], | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"declaration": true, | ||
"emitDeclarationOnly": true, | ||
"outDir": "types", | ||
"declarationMap": true | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
declare function _exports(): { | ||
initialize: (el: HTMLElement, options: { | ||
modifier: string; | ||
}) => void; | ||
}; | ||
export = _exports; | ||
//# sourceMappingURL=accordion.d.ts.map | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need the map files? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @alexander-schranz if you want to provide autocomplitons for IDE yes, if not it can be disabled with |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare function _exports(): { | ||
initialize: (el: HTMLElement) => void; | ||
}; | ||
export = _exports; | ||
//# sourceMappingURL=container-link.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
declare function _exports(): { | ||
initialize: (el: HTMLElement, options: { | ||
modifier: string; | ||
closeOnEsc: boolean; | ||
container: string; | ||
}) => void; | ||
}; | ||
export = _exports; | ||
//# sourceMappingURL=expand.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
declare function _exports(): { | ||
initialize: (el: HTMLElement, options: { | ||
upClass: string; | ||
downClass: string; | ||
}) => void; | ||
}; | ||
export = _exports; | ||
//# sourceMappingURL=scroll-direction.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
declare function _exports(): { | ||
initialize: (el: HTMLElement, options: { | ||
upClass: string; | ||
downClass: string; | ||
tolerance: number; | ||
}) => void; | ||
}; | ||
export = _exports; | ||
//# sourceMappingURL=scroll-menu.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare function _exports(): { | ||
initialize: (el: HTMLElement) => void; | ||
}; | ||
export = _exports; | ||
//# sourceMappingURL=tabs.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
declare function _exports(): { | ||
initialize: (el: HTMLElement, options: { | ||
modifier: string; | ||
}) => void; | ||
}; | ||
export = _exports; | ||
//# sourceMappingURL=toggle.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
declare function _exports(): { | ||
initialize: (el: HTMLElement, options: { | ||
separator: string; | ||
debounceDelay: number; | ||
}) => void; | ||
}; | ||
export = _exports; | ||
//# sourceMappingURL=truncate.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
declare function _exports(): { | ||
initialize: (el: HTMLElement, options: { | ||
offset: number; | ||
}) => void; | ||
}; | ||
export = _exports; | ||
//# sourceMappingURL=window-scroll.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,14 @@ | ||||||||
declare namespace web { } | ||||||||
import registerComponent = web.registerComponent; | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does typescript correctly read the types from jsdocs here? Lines 184 to 186 in 49f6e9e
So it will correctly fail if it is called with something else? |
||||||||
import registerService = web.registerService; | ||||||||
import startComponents = web.startComponents; | ||||||||
import callServices = web.callServices; | ||||||||
import startComponent = web.startComponent; | ||||||||
import callService = web.callService; | ||||||||
import getService = web.getService; | ||||||||
import getComponent = web.getComponent; | ||||||||
import hasComponent = web.hasComponent; | ||||||||
import hasService = web.hasService; | ||||||||
import removeComponent = web.removeComponent; | ||||||||
export { registerComponent, registerService, startComponents, callServices, startComponent, callService, getService, getComponent, hasComponent, hasService, removeComponent }; | ||||||||
//# sourceMappingURL=core.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
declare namespace lazy { } | ||
import registerComponent = lazy.registerComponent; | ||
import registerService = lazy.registerService; | ||
import startComponents = lazy.startComponents; | ||
import startServices = lazy.startServices; | ||
export { registerComponent, registerService, startComponents, startServices }; | ||
//# sourceMappingURL=lazy.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* @param {String} uri | ||
* @param {Object} data | ||
* | ||
* @returns {promise} | ||
*/ | ||
export declare function get(uri: string, data: any): Promise<any>; | ||
/** | ||
* @param {String} uri | ||
* @param {Object} data | ||
* | ||
* @returns {promise} | ||
*/ | ||
export declare function post(uri: string, data: any): Promise<any>; | ||
/** | ||
* @param {String} uri | ||
* @param {Object} data | ||
* | ||
* @returns {promise} | ||
*/ | ||
export declare function put(uri: string, data: any): Promise<any>; | ||
declare function _delete(uri: any, data: any): Promise<any>; | ||
export { _delete as delete }; | ||
//# sourceMappingURL=api.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
declare function _exports(func: Function, wait: number, immediate: boolean): (() => void) | any; | ||
export = _exports; | ||
//# sourceMappingURL=debounce.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const key: string; | ||
export const promise: any; | ||
Comment on lines
+1
to
+2
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For me looks here are all methods missing. |
||
//# sourceMappingURL=google-map-library.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export = supportsPassive; | ||
declare var supportsPassive: boolean; | ||
//# sourceMappingURL=passive-events.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This object should stay as before.