mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Added types for jquery-toast-plugin
This commit is contained in:
parent
0897921174
commit
e528ae38eb
32
types/jquery-toast-plugin/index.d.ts
vendored
Normal file
32
types/jquery-toast-plugin/index.d.ts
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
// Type definitions for jquery-toast-plugin
|
||||
// Project: https://github.com/kamranahmedse/jquery-toast-plugin
|
||||
// Definitions by: Viqas Hussain <https://github.com/viqashussain>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
/// <reference types="jquery"/>
|
||||
|
||||
interface JQueryStatic {
|
||||
toast(options: toastOptions): void;
|
||||
}
|
||||
|
||||
interface toastOptions
|
||||
{
|
||||
text: string;
|
||||
heading?: string;
|
||||
showHideTransition?: string;
|
||||
allowToastClose?: boolean;
|
||||
hideAfter?: number;
|
||||
loader?: boolean;
|
||||
loaderBg?: string;
|
||||
stack?: number;
|
||||
position?: string;
|
||||
bgColor?: boolean;
|
||||
textColor?: boolean;
|
||||
textAlign?: string;
|
||||
icon?: boolean;
|
||||
beforeShow?: () => any;
|
||||
afterShown?: () => any;
|
||||
beforeHide?: () => any;
|
||||
afterHidden?: () => any;
|
||||
}
|
||||
1
types/jquery-toast-plugin/jquery-toast-plugin-tests.ts
Normal file
1
types/jquery-toast-plugin/jquery-toast-plugin-tests.ts
Normal file
@ -0,0 +1 @@
|
||||
$.toast({ text: "test" })
|
||||
22
types/jquery-toast-plugin/tsconfig.json
Normal file
22
types/jquery-toast-plugin/tsconfig.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"jquery-toast-plugin-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/jquery-toast-plugin/tslint.json
Normal file
1
types/jquery-toast-plugin/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user