Skip to content

Commit

Permalink
materialize custom typings
Browse files Browse the repository at this point in the history
  • Loading branch information
diegohb committed Aug 7, 2017
1 parent 2679a19 commit 6d6e439
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions custom_typings/jquery.d.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@

//https://stackoverflow.com/a/18114282/1240322
export interface IMaterial {
(): JQuery
init(): any;
}
declare interface IMaterial {
(options?: any): JQuery
init(): any;
}

export interface JQueryStatic<TElement extends Node = HTMLElement> {
material: IMaterial;
}

export interface JQueryStatic {
material: IMaterial;
}
declare interface JQueryStatic<TElement extends Node = HTMLElement> {
material: IMaterial;
}


declare namespace JQuery {

export namespace material {
export function init():any;
}
declare interface JQueryStatic {
material: IMaterial;
}

0 comments on commit 6d6e439

Please sign in to comment.