-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from appcoders/mr/addTypes
Adding type information for usage from TypeScript
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
interface componentMethods { | ||
add: (name:object|string, template:object) => void, | ||
get: (name:string) => object, | ||
} | ||
interface iHTMLInterface { | ||
append: (ihtml:iHTMLInterface) => iHTMLInterface; | ||
appendHTML: (html:string) => iHTMLInterface; | ||
toJSON: () => object; | ||
|
||
} | ||
export function render(json: object|string, template: object, options?: object): string; | ||
export function toText(html:string): string; | ||
export const component: componentMethods; | ||
export const version: string; | ||
export const iHTML: iHTMLInterface; |