mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 07:40:10 +00:00
Added tslint file
This commit is contained in:
@@ -23,7 +23,7 @@ $.fancybox.update();
|
||||
$.fancybox.toggle();
|
||||
$.fancybox.showLoading();
|
||||
$.fancybox.hideLoading();
|
||||
$(".selector").fancybox({ 'type': 'image' });
|
||||
$(".selector").fancybox({ type: 'image' });
|
||||
$("#single_1").fancybox({
|
||||
helpers: {
|
||||
title: {
|
||||
@@ -114,7 +114,7 @@ $(".fancybox").fancybox({
|
||||
});
|
||||
$(".fancybox").fancybox({
|
||||
beforeLoad: () => {
|
||||
this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : '');
|
||||
this.title = this.title ? `Image ${this.index + 1} of ${this.group.length} - ${this.title}` : `Image ${this.index + 1} of ${this.group.length}`;
|
||||
}
|
||||
});
|
||||
$.fancybox('<div><h1>Lorem Lipsum</h1><p>Lorem lipsum</p></div>', {
|
||||
@@ -142,4 +142,4 @@ $.fancybox([
|
||||
|
||||
$(".fancybox").fancybox({
|
||||
margin: [20, 60, 20, 60]
|
||||
});
|
||||
});
|
||||
|
||||
1
types/fancybox/index.d.ts
vendored
1
types/fancybox/index.d.ts
vendored
@@ -4,7 +4,6 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
|
||||
/// <reference types="jquery" />
|
||||
|
||||
interface FancyboxOptions extends FancyboxCallback {
|
||||
|
||||
7
types/fancybox/tslint.json
Normal file
7
types/fancybox/tslint.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"ban-types": false,
|
||||
"unified-signatures": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user