mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* base-64 typings
* formatting and indenting
* feat: add typings for watchpack
* fix: improve missing typings
* Port from https://github.com/agileek/typings-vis/blob/master/vs.d.ts
* Fix travis build failures
* Port PR https://github.com/agileek/typings-vis/pull/12
* Fix travis build failures
* added tsconfig and tslint
* removed patch number
* added tests
* made it export like base64-js
* removed old code
* formatted code
* fix: add files field in tsconfig.json for expected publishment
* fix: improve most missing typings
* feat: upgrade to v3.0.0
* feat: upgrade to tapbale v0.2.5
* Types 2.0 (#13261)
* updating typing of the latest 7.0 react-autosuggest
* updating typing of react-autosuggest 7.0
* update typings for react-autosuggest 7.0
* Remove '+' from header versions, so they can be parsed (#13239)
* Updated masonry-layout to fix linting errors (#13272)
* Updated masonry-layout to fix linting errors
* Fixed the tests I could fix.
* Removed patch version
* Add redux-persist and basic transformers (#13389)
* Add definitions for redux-persist
* Add missin generic types
* Add definitions for filter transformer
* Add definitions for encrypt transformer
* Fix header
* Add definitions for compress transformer
* Delete unnecessary linter configs
* Change way of importing, fix tests
* fix: angulartics type definition for ES6 import
* fix: lint error
* fix scalar type config (#13398)
The `GraphQLScalarTypeConfig` interface had incorrect types. Correct types may be seen here: 379a308439/src/type/definition.js (L348-L350)
* [interact.js] Update module names (#13316)
Update CommonJS module name as it was changed in version 1.2.7.
AMD module name is also different from both new and old CommonJS module names, so a separate declaration was created for that as well.
* Add definitions for redux-recycle (#13424)
* Add definitions for redux-recycle
* Fix linter errors
* [jest] add type definition for toHaveBeenLastCalledWith (#13038)
* remove ajv because the package bundles its own types (#13028)
* Updated type definitions to yfiles for HTML 2.0. (#13332)
* Updated type definitions to yFiles for HTML 2.0.
* Updated type definitions to yfiles for HTML 2.0.
* Added contact in yfiles .d.ts header.
* Add redux-batched-actions typings. (#13054)
* Add types for mailgen (#13080)
* Typings for cordova-sqlite-storage (#13081)
* Add flatpickr definitions (#13083)
* Add pouch-redux-middleware typing (#13071)
* Add pouch-redux-middleware typing
* Fix <> in comment
* Add declaration for crc (#13068)
* Updated jquery.dataTables for 1.10.9 (#13099)
Release Notes: https://cdn.datatables.net/1.10.9/
* Moved legacy browser settings to its own data type.
* Added 'aIds' property on legacy settings object for mapping row ids to data indexes.
* Added 'rowIdFn' function to legacy settings object to get a row's id from the row's data.
* chore(lint): change vis typing to external module (#13399)
* Fix cordova-sqlite-storage lint
* Lint `vis`: Remove "I" prefix for namespaces
* Change cordova-sqlite-storage back. Linter was wrong.
81 lines
2.1 KiB
TypeScript
81 lines
2.1 KiB
TypeScript
// Type definitions for Mailcheck 1.1
|
|
// Project: https://github.com/mailcheck/mailcheck
|
|
// Definitions by: Paulo Cesar <http://github.com/pocesar>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="jquery" />
|
|
|
|
declare var Mailcheck: MailcheckModule.Static;
|
|
|
|
declare namespace MailcheckModule {
|
|
|
|
export interface IDistanceFunction {
|
|
(s1: string, s2: string): number;
|
|
}
|
|
|
|
export interface ISuggestFunction {
|
|
(email: string, domains?: string[], topLevelDomains?: string[], distanceFunction?: IDistanceFunction):void;
|
|
}
|
|
|
|
export interface IJQuerySuggested {
|
|
(element: JQuery, suggested: ISuggestion): void;
|
|
}
|
|
|
|
export interface IJQueryEmpty {
|
|
(element: JQuery): void;
|
|
}
|
|
|
|
export interface IEmpty {
|
|
(): void;
|
|
}
|
|
|
|
export interface ISuggested {
|
|
(suggested: ISuggestion): void;
|
|
}
|
|
|
|
export interface ISplitEmail {
|
|
topLevelDomain?: string;
|
|
domain?: string;
|
|
address?: string;
|
|
}
|
|
|
|
export interface ISuggestion {
|
|
address: string;
|
|
domain: string;
|
|
full: string;
|
|
}
|
|
|
|
export interface IOptions {
|
|
email: string;
|
|
domains?: string[];
|
|
secondLevelDomains?: string[];
|
|
topLevelDomains?: string[];
|
|
distanceFunction?: IDistanceFunction;
|
|
suggested?: ISuggested | IJQuerySuggested;
|
|
empty?: IEmpty | IJQueryEmpty;
|
|
}
|
|
|
|
export interface Static {
|
|
defaultDomains: string[];
|
|
defaultSecondLevelDomains: string[];
|
|
defaultTopLevelDomains: string[];
|
|
domainThreshold: number;
|
|
topLevelThreshold: number;
|
|
run(opts: IOptions):void;
|
|
suggest: ISuggestFunction;
|
|
encodeEmail(email: string): string;
|
|
splitEmail(email: string): ISplitEmail;
|
|
sift3Distance(s1: string, s2: string): number;
|
|
findClosestDomain(domain: string, domains: string[], distanceFunction?: IDistanceFunction, threshold?: number): boolean|string;
|
|
}
|
|
|
|
}
|
|
|
|
interface JQuery {
|
|
mailcheck(opts: MailcheckModule.IOptions): void;
|
|
}
|
|
|
|
declare module 'mailcheck' {
|
|
export = Mailcheck;
|
|
}
|