Skip to content

Commit

Permalink
fix 'any' types
Browse files Browse the repository at this point in the history
  • Loading branch information
nippur72 committed Oct 5, 2016
1 parent f306078 commit 68d3794
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "riot-typescript",
"version": "1.0.7",
"version": "1.0.10",
"description": "Riot for TypeScript",
"main": "./riot-ts.js",
"typings": "./riot-ts.d.ts",
Expand Down
8 changes: 4 additions & 4 deletions riot-ts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ export declare function template(template: string): (target: Function) => void;
export interface Router {
(callback: Function): void;
(filter: string, callback: Function): void;
(to: string, title?: string): any;
(to: string, title?: string): void;
create(): Router;
start(autoExec?: boolean): any;
stop(): any;
exec(): any;
start(autoExec?: boolean): void;
stop(): void;
exec(): void;
query(): any;
base(base: string): any;
parser(parser: (path: string) => string, secondParser?: Function): any;
Expand Down
12 changes: 6 additions & 6 deletions riot-ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,16 @@ export function template(template: string) {
export interface Router {
(callback: Function): void;
(filter: string, callback: Function): void;
(to: string, title?: string);
(to: string, title?: string): void;

create(): Router;
start(autoExec?: boolean);
stop();
exec();
start(autoExec?: boolean): void;
stop(): void;
exec(): void;
query(): any;

base(base: string);
parser(parser: (path: string)=>string, secondParser?: Function );
base(base: string): any;
parser(parser: (path: string)=>string, secondParser?: Function ): any;
}

export interface CompilerResult {
Expand Down
16 changes: 8 additions & 8 deletions riot.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
interface Router {
(callback: Function): void;
(filter: string, callback: Function): void;
(to: string, title?: string);
(to: string, title?: string): void;

create(): Router;
start(autoExec?: boolean);
stop();
exec();
start(autoExec?: boolean): void;
stop(): void;
exec(): void;
query(): any;

base(base: string);
parser(parser: (path: string)=>string, secondParser?: Function );
base(base: string): any;
parser(parser: (path: string)=>string, secondParser?: Function ): any;
}

interface Settings {
Expand All @@ -48,8 +48,8 @@
mount(selector: string, tagName: string, opts?: any): Array<RiotElement>;
mount(domNode: Node, tagName: string, opts?: any): Array<RiotElement>;
render(tagName: string, opts?: any): string;
tag(tagName: string, html: string, css: string, attrs: string, constructor: Function);
tag2(tagName: string, html: string, css: string, attrs: string, constructor: Function, bpair: string);
tag(tagName: string, html: string, css: string, attrs: string, constructor: Function): any;
tag2(tagName: string, html: string, css: string, attrs: string, constructor: Function, bpair: string): any;
class(element: Function): void;
observable(object: any): void;
compile: Compile;
Expand Down
16 changes: 8 additions & 8 deletions riot.global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
interface Router {
(callback: Function): void;
(filter: string, callback: Function): void;
(to: string, title?: string);
(to: string, title?: string): void;

create(): Router;
start(autoExec?: boolean);
stop();
exec();
start(autoExec?: boolean): void;
stop(): void;
exec(): void;
query(): any;

base(base: string);
parser(parser: (path: string)=>string, secondParser?: Function );
base(base: string): any;
parser(parser: (path: string)=>string, secondParser?: Function ): any;
}

interface Settings {
Expand All @@ -46,8 +46,8 @@
function mount(selector: string, tagName: string, opts?: any): Array<RiotElement>;
function mount(domNode: Node, tagName: string, opts?: any): Array<RiotElement>;
function render(tagName: string, opts?: any): string;
function tag(tagName: string, html: string, css: string, attrs: string, constructor: Function);
function tag2(tagName: string, html: string, css: string, attrs: string, constructor: Function, bpair: string);
function tag(tagName: string, html: string, css: string, attrs: string, constructor: Function): any;
function tag2(tagName: string, html: string, css: string, attrs: string, constructor: Function, bpair: string): any;
function _class(element: Function): void;
function observable(object: any): void;
function compile(callback: Function): void;
Expand Down

0 comments on commit 68d3794

Please sign in to comment.