mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added missing nconf.required(keys) and Provider.required(keys) methods. * update to 4.7.0, add querycursor.map() and schema.loadClass() * add error callback for schema.post() * Added playsInline property as introduced in React 15.3.2 * Add definitions for redux-localstorage and main enhancers (#12580) * Add definitions for redux-localstorage * Add definitions for redux-localstorage-filter enhancer * Add definitions for redux-localstorage-debounce enhancer * csurf.d.ts relying on CookieOptions from express It seems express no longer exports `CookieOptions`, we need to import `express-serve-static-core` instead. * Added height property to IDialogOptions * versionKey type * kendo-ui: mark toString() params as optional (#13164) These function parameters are optional according to the upstream docs, e.g. http://docs.telerik.com/kendo-ui/api/javascript/geometry/matrix#methods-toString * Ensure that zoneAbbr and zoneName are expected type (string). * Update moment-timezone.d.ts * Fix syntax error in interact.d.ts A parameter name was missing making TypeScript compiler fail. * adding type for move to fs-extra * fixing signature of sinon/alwaysReturned based on the http://sinonjs.org/docs/#sinonspy * increasing version number * returning back the version number to the origin number * reversing changes in fs-extra * Request that PRs have meaningful titles * Improvement to existing nouislider type definition. (#12033) * updated nouislider version and added a lot of tests out of the documentation * corrected intentation * corrected untyped variables, issue raised by Travis * incorporated feedback on pull request * #13037 (#13039) * #13037 * pointToLayer first argument type fixed GeoJSON.Point to GeoJSON.Feature<GeoJSON.Point> * Missing cc in sendgrid packate (#13063) The sendgrid package was missing the `cc` field, and the `bcc` field had a too generic type (`any` instead of `string[]`, as used on the `setCcs` and `setBccs` below. * Fixes #12414 (#13076) * Fixes #12414 * Make applicationServerKey optional * added ariaLabelledBy and ariaDescribedBy to IModalSettings (#13004) * Ceymard leaflet (#13007) * replaced all overrides of LatLng by a single use of LatLngExpression when appropriate * Changed Point, PointTuple overrides to use PointExpression instead * Changet use of LatLngBounds and Bounds in general to use the Expression variant instead of having several overrides * add ElasticSeach 5.x API function for deleteByQuery (#13014) * add ElasticSeach 5.x API function for deleteByQuery * use searchParams for deleteByQuery, as theses resemble the documentation. * add DeleteByQueryParams parameter type. * add deleteByQuery to tests. * Make `less` render options optional (#13078) * Added semver * Updated gravity definition. (#13088) * Full Redis client options (#13108) * Added missing return type to on() methods. (#13082) * Update react-native.0.29.d.ts (#13118) drawerPosition is of type `number` Android DrawerConsts.DrawerPosition.Left is equivalent to DrawerLayoutAndroid.positions.Left Android DrawerConsts.DrawerPosition.Right is equivalent to DrawerLayoutAndroid.positions.Right * Upgrade to match braintree-web 3.6.1 (#13098) * Update to match braintree-web version 3.3.0 * Upgrade to match Braintree-web v3.5.0 * upgrade to match braintree-web 3.6.1 add US bank class * Fix missing parameters from svg append (#13119) * Add parameter declarations to append() * Made insertFirst parameter optional * Correct missing ‘auto’ option of GridList’s cellHeight (#13094) * Add new Angular 1.5.9 methods to $compileProvider (#13096) * Add new Angular 1.5.9 methods to $compileProvider Add new methods available in Angular 1.5.9: onChangesTtl(), commentDirectivesEnabled() and cssClassDirectivesEnabled() * Add JSDoc to Angular 1.59 new methods of $compileProvider JSDoc for onChangesTtl(), commentDirectivesEnabled() and cssClassDirectivesEnabled() methods. * Expand $compileProvider JSDoc Urls added to JSDoc of Angular 1.5.9 new methods . * Changed type of injectedScript property to string (#13120) The injectedScript property should take string value with script code, not the bool flag as in current version * Use unions for openlayers string enums (#13134) * Update google.maps.MapPane interface (#13122) * Removing myself (AlStar01) as definition author from angular-material.d.ts (#13125) * Clarify that notNeededPackages.json is just for packages formerly on DefinitelyTyped (#13156) * Update Parsimmon typings (#13146) * Update AmCharts.d.ts (#13170) * knex: add MySqlConnectionConfig, tests (#13161) * knex: add MySqlConnectionConfig, tests * knex: add types for MySqlConnectionConfig queryFormat params * Add note in readme about tsjs-lib-generator (#13210) * Remove redux-localstorage packages; added by #13115 instead
96 lines
2.3 KiB
TypeScript
96 lines
2.3 KiB
TypeScript
// Type definitions for LESS
|
|
// Project: http://lesscss.org/
|
|
// Definitions by: Tom Hasner <https://github.com/thasner>, Pranay Prakash <https://github.com/pranaygp>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare namespace Less {
|
|
interface RootFileInfo {
|
|
filename: string;
|
|
relativeUrls: boolean;
|
|
rootpath: string;
|
|
currentDirectory: string;
|
|
entryPath: string;
|
|
rootFilename: string;
|
|
}
|
|
|
|
class PluginManager {
|
|
constructor(less: LessStatic);
|
|
|
|
addPreProcessor(preProcessor: PreProcessor, priority?: number): void;
|
|
}
|
|
|
|
interface Plugin {
|
|
install: (less: LessStatic, pluginManager: PluginManager) => void;
|
|
}
|
|
|
|
interface PreProcessor {
|
|
process: (src: string, extra: PreProcessorExtraInfo) => string;
|
|
}
|
|
|
|
interface PreProcessorExtraInfo {
|
|
context: {
|
|
pluginManager: PluginManager;
|
|
};
|
|
|
|
fileInfo: RootFileInfo;
|
|
|
|
imports: {
|
|
[key: string]: any;
|
|
};
|
|
}
|
|
|
|
interface SourceMapOption {
|
|
sourceMapURL?: string;
|
|
sourceMapBasepath?: string;
|
|
sourceMapRootpath?: string;
|
|
outputSourceFiles?: boolean;
|
|
sourceMapFileInline?: boolean;
|
|
}
|
|
|
|
interface StaticOptions {
|
|
async: boolean;
|
|
fileAsync: boolean;
|
|
}
|
|
|
|
interface Options {
|
|
sourceMap?: SourceMapOption;
|
|
filename?: string;
|
|
plugins?: Plugin[];
|
|
rootFileInfo?: RootFileInfo;
|
|
}
|
|
|
|
interface RenderError {
|
|
column: number;
|
|
extract: string[];
|
|
filename: string;
|
|
index: number;
|
|
line: number;
|
|
message: string;
|
|
type: string;
|
|
}
|
|
|
|
interface RenderOutput {
|
|
css: string;
|
|
map: string;
|
|
imports: string[];
|
|
}
|
|
}
|
|
|
|
interface LessStatic {
|
|
options: Less.StaticOptions;
|
|
|
|
render(input: string, callback: (error: Less.RenderError, output: Less.RenderOutput) => void): void;
|
|
render(input: string, options: Less.Options, callback: (error: Less.RenderError, output: Less.RenderOutput) => void): void;
|
|
|
|
render(input: string): Promise<Less.RenderOutput>;
|
|
render(input: string, options: Less.Options): Promise<Less.RenderOutput>;
|
|
|
|
version: number[];
|
|
}
|
|
|
|
declare module "less" {
|
|
export = less;
|
|
}
|
|
|
|
declare var less: LessStatic;
|