Merge branch 'master' of github.com:borisyankov/DefinitelyTyped

This commit is contained in:
vvakame
2014-11-05 14:41:32 +09:00
5 changed files with 51 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
/// <reference path="headroom.d.ts" />
new Headroom(document.getElementById('siteHead'));
new Headroom(document.getElementsByClassName('siteHead')[0]);
new Headroom(document.getElementsByClassName('siteHead')[0], {
tolerance: 34
});
new Headroom(document.getElementsByClassName('siteHead')[0], {
offset: 500
});
+28
View File
@@ -0,0 +1,28 @@
// Type definitions for headroom.js v0.7.0
// Project: http://wicky.nillia.ms/headroom.js/
// Definitions by: Jakub Olek <https://github.com/hakubo/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface HeadroomOptions {
offset?: number;
tolerance?: any;
classes?: {
initial?: string;
pinned?: string;
unpinned?: string;
top?: string;
notTop?: string;
};
scroller?: Element;
onPin?: () => void;
onUnPin?: () => void;
onTop?: () => void;
onNotTop?: () => void;
}
declare class Headroom {
constructor(element: Node, options?: HeadroomOptions);
constructor(element: Element, options?: HeadroomOptions);
init: () => void;
}
+3
View File
@@ -482,6 +482,9 @@ declare module ng {
$apply(): any;
$apply(exp: string): any;
$apply(exp: (scope: IScope) => any): any;
$applyAsync(exp: string): any;
$applyAsync(exp: (scope: IScope) => any): any;
$broadcast(name: string, ...args: any[]): IAngularEvent;
$destroy(): void;
+1 -1
View File
@@ -75,7 +75,7 @@ interface ModernizrStatic {
history: boolean;
audio: Audioboolean;
video: Videoboolean;
indexedDB: boolean;
indexeddb: boolean;
input: Inputboolean;
inputtypes: InputTypesboolean;
localstorage: boolean;
+6
View File
@@ -993,6 +993,12 @@ interface ZeptoCollection {
**/
prependTo(content: HTMLElement[]): ZeptoCollection;
/**
* @see ZeptoCollection.prependTo
* @param content
**/
prependTo(content: ZeptoCollection): ZeptoCollection;
/**
* Get the previous sibling—optionally filtered by selector—of each element in the collection.
* @param selector