mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge branch 'master' of github.com:borisyankov/DefinitelyTyped
This commit is contained in:
@@ -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
|
||||
});
|
||||
Vendored
+28
@@ -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;
|
||||
}
|
||||
Vendored
+3
@@ -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;
|
||||
|
||||
Vendored
+1
-1
@@ -75,7 +75,7 @@ interface ModernizrStatic {
|
||||
history: boolean;
|
||||
audio: Audioboolean;
|
||||
video: Videoboolean;
|
||||
indexedDB: boolean;
|
||||
indexeddb: boolean;
|
||||
input: Inputboolean;
|
||||
inputtypes: InputTypesboolean;
|
||||
localstorage: boolean;
|
||||
|
||||
Vendored
+6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user