Fix typo of paramter

This commit is contained in:
Anton Halim
2018-10-14 21:55:18 -07:00
parent 59dc9899d3
commit b0f1c3ad71
27 changed files with 36518 additions and 36520 deletions
+6 -6
View File
@@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
type FunctionBasedParamter = (element: HTMLElement, index: number, length: number) => number;
type FunctionBasedParameter = (element: HTMLElement, index: number, length: number) => number;
type AnimeCallbackFunction = (anim: anime.AnimeInstance) => void;
// Allowing null is necessary because DOM queries may not return anything.
type AnimeTarget = string | object | HTMLElement | SVGElement | NodeList | null;
@@ -55,10 +55,10 @@ declare namespace anime {
interface AnimeAnimParams {
targets: AnimeTarget | ReadonlyArray<AnimeTarget>;
duration?: number | FunctionBasedParamter;
delay?: number | FunctionBasedParamter;
elasticity?: number | FunctionBasedParamter;
round?: number | boolean | FunctionBasedParamter;
duration?: number | FunctionBasedParameter;
delay?: number | FunctionBasedParameter;
elasticity?: number | FunctionBasedParameter;
round?: number | boolean | FunctionBasedParameter;
easing?: EasingOptions | string | ReadonlyArray<number>;
@@ -106,7 +106,7 @@ declare namespace anime {
}
interface AnimeTimelineAnimParams extends AnimeAnimParams {
offset: number | string | FunctionBasedParamter;
offset: number | string | FunctionBasedParameter;
}
interface AnimeTimelineInstance extends AnimeInstance {
+10465 -10465
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -9416,7 +9416,7 @@ declare namespace chrome {
* If set, updates the display's rotation.
* Legal values are [0, 90, 180, 270].
* The rotation is set clockwise, relative to the display's vertical position.
* It's applied after overscan paramter.
* It's applied after overscan parameter.
*/
rotation?: 0 | 90 | 180 | 270;
+12 -13
View File
@@ -4,33 +4,33 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module commangular {
///////////////////////////////////////////////////////////////////////////
// Commangular Static
// see http://commangular.org/docs/#commangular-namespace
///////////////////////////////////////////////////////////////////////////
interface ICommAngularStatic {
/**
* Mock dispatch function for testing commands.
*/
dispatch( ec: ICommandCall, callback: Function ): void;
}
interface ICommandCall {
/**
* Name of the command that needs to
* execute
*/
command: string;
/**
* Data that needs to be passed to the command
*/
data?: any;
}
/**
* Object type expected to be passed into the callback function
* of the dispatch() function
@@ -41,25 +41,25 @@ declare module commangular {
* @param key The property name that is in the object that was passed
*/
dataPassed( key : string ) : any;
/**
* The data that was returned by the command
* @param key The result key that was defined in the command. If no result
* was defined use 'lastResult' as the key
*/
resultKey( key: string ): any;
/**
* Indicates if the command execution was cancelled.
*/
canceled( ): boolean;
/**
* Indicates if the command was executed????
*/
commandExecuted( ): boolean;
}
}
@@ -67,7 +67,6 @@ declare module commangular {
* Mock dispatch function for testing commands.
* @param ec an ICommandCall object
* @param callback The function that will be called upon the completion of the command
* function should expecte an ICommandInfo paramter.
* function should expecte an ICommandInfo parameter.
*/
declare function dispatch( ec: commangular.ICommandCall, callback: Function ): void;
declare function dispatch( ec: commangular.ICommandCall, callback: Function ): void;
+25999 -25999
View File
File diff suppressed because one or more lines are too long
+5 -5
View File
@@ -17225,7 +17225,7 @@ declare namespace dojox {
get(property:"searchContainerNode"): boolean;
watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void}
/**
* A parameter needed by RadioGroupSlide only. An optional paramter to force
* A parameter needed by RadioGroupSlide only. An optional parameter to force
* the ContentPane to slide in from a set direction. Defaults
* to "random", or specify one of "top", "left", "right", "bottom"
* to slideFrom top, left, right, or bottom.
@@ -18171,7 +18171,7 @@ declare namespace dojox {
get(property:"searchContainerNode"): boolean;
watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void}
/**
* A parameter needed by RadioGroupSlide only. An optional paramter to force
* A parameter needed by RadioGroupSlide only. An optional parameter to force
* the ContentPane to slide in from a set direction. Defaults
* to "random", or specify one of "top", "left", "right", "bottom"
* to slideFrom top, left, right, or bottom.
@@ -23352,7 +23352,7 @@ declare namespace dojox {
get(property:"refreshOnShow"): boolean;
watch(property: "refreshOnShow", callback: { (property?: string, oldValue?: boolean, newValue?: boolean): void }): { unwatch(): void }
/**
* A parameter needed by RadioGroupSlide only. An optional paramter to force
* A parameter needed by RadioGroupSlide only. An optional parameter to force
* the ContentPane to slide in from a set direction. Defaults
* to "random", or specify one of "top", "left", "right", "bottom"
* to slideFrom top, left, right, or bottom.
@@ -24411,7 +24411,7 @@ declare namespace dojox {
get(property:"ownerDocument"): Object;
watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void}
/**
* A parameter needed by RadioGroupSlide only. An optional paramter to force
* A parameter needed by RadioGroupSlide only. An optional parameter to force
* the ContentPane to slide in from a set direction. Defaults
* to "random", or specify one of "top", "left", "right", "bottom"
* to slideFrom top, left, right, or bottom.
@@ -25307,7 +25307,7 @@ declare namespace dojox {
get(property:"searchContainerNode"): boolean;
watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void}
/**
* A parameter needed by RadioGroupSlide only. An optional paramter to force
* A parameter needed by RadioGroupSlide only. An optional parameter to force
* the ContentPane to slide in from a set direction. Defaults
* to "random", or specify one of "top", "left", "right", "bottom"
* to slideFrom top, left, right, or bottom.
+1 -1
View File
@@ -101,7 +101,7 @@ interface DurandalSystemModule {
/**
* Creates a deferred object which can be used to create a promise. Optionally pass a function action to perform which will be passed an object used in resolving the promise.
* @param {function} [action] The action to defer. You will be passed the deferred object as a paramter.
* @param {function} [action] The action to defer. You will be passed the deferred object as a parameter.
* @returns {Deferred} The deferred object.
*/
defer<T>(action?: (dfd: DurandalDeferred<T>) => void): DurandalDeferred<T>;
+7 -7
View File
@@ -1372,7 +1372,7 @@ declare enum EnumDWT_UploadDataFormat {
Base64 = 1
}
/**
/**
* interface for a DWT container which basically defines a DIV on the page
*/
interface Container {
@@ -1381,7 +1381,7 @@ interface Container {
Height: string | number;
}
/**
/**
* interface for a base64 result
*/
interface Base64Result {
@@ -2294,7 +2294,7 @@ interface WebTwain {
*/
Zoom: number;
/* ignored
/* ignored
style
_AutoCropMethod
*/
@@ -2490,7 +2490,7 @@ interface WebTwain {
* @param {Array} indices indices specifies which images are to be converted to base64.
* @param {EnumDWT_ImageType} enumImageType the image format in which the images are to be converted to base64.
* @return {Base64Result}
ConvertToBase64(indices: number[], enumImageType: EnumDWT_ImageType): Base64Result;
*/
@@ -3289,7 +3289,7 @@ interface WebTwain {
*/
MoveImage(sSourceImageIndex: number, sTargetImageIndex: number): boolean;
/*ignored
/*ignored
OnRefreshUI
*/
@@ -3727,7 +3727,7 @@ interface WebTwain {
* @param {string} InitialDir The initial directory. The algorithm for selecting the initial directory varies on different platforms.
* @param {boolean} AllowMultiSelect True -- allows users to select more than one file, False -- only allows to select one file.
* @param {boolean} OverwritePrompt True -- If a file already exists with the same name, the old file will be simply overwritten, False -- not allows to save and overwrite a same name file.
* @param {number} Flags If this parameter equals 0, the program will be initiated with the default flags, otherwise initiated with the cumstom value and paramters "AllowMultiSelect" and "OverwritePrompt" will be useless.
* @param {number} Flags If this parameter equals 0, the program will be initiated with the default flags, otherwise initiated with the cumstom value and parameters "AllowMultiSelect" and "OverwritePrompt" will be useless.
* @return {boolean}
*/
ShowFileDialog(SaveDialog: boolean, Filter: string, FilterIndex: number, DefExtension: string, InitialDir: string, AllowMultiSelect: boolean, OverwritePrompt: boolean, Flags: number): boolean;
@@ -3751,7 +3751,7 @@ interface WebTwain {
*/
ShowImageEditorEx(x: number, y: number, cx: number, cy: number, nCmdShow: number): boolean;
/*ingored
/*ingored
SourceNameItems
*/
+1 -1
View File
@@ -2768,7 +2768,7 @@ interface WebTwain {
* @param {string} InitialDir The initial directory. The algorithm for selecting the initial directory varies on different platforms.
* @param {bool} AllowMultiSelect True -- allows users to select more than one file, False -- only allows to select one file.
* @param {bool} OverwritePrompt True -- If a file already exists with the same name, the old file will be simply overwritten, False -- not allows to save and overwrite a same name file.
* @param {int} Flags If this parameter equals 0, the program will be initiated with the default flags, otherwise initiated with the cumstom value and paramters "AllowMultiSelect" and "OverwritePrompt" will be useless.
* @param {int} Flags If this parameter equals 0, the program will be initiated with the default flags, otherwise initiated with the cumstom value and parameters "AllowMultiSelect" and "OverwritePrompt" will be useless.
* @return {bool}
*/
ShowFileDialog(SaveDialog: boolean, Filter: string, FilterIndex: number, DefExtension: string, InitialDir: string, AllowMultiSelect: boolean, OverwritePrompt: boolean, Flags: number): boolean;
+1 -2
View File
@@ -104,7 +104,7 @@ export function warn(...values: any[]): void;
///////////////////////////////////////////////////////////////////////////////
// Data Object Interfaces - These intrface are not specific part of fabric,
// They are just helpful for for defining function paramters
// They are just helpful for for defining function parameters
//////////////////////////////////////////////////////////////////////////////
interface IDataURLOptions {
/**
@@ -4682,4 +4682,3 @@ export interface WebglFilterBackend extends FilterBackend, WebglFilterBackendOpt
export class WebglFilterBackend {
constructor(options?: WebglFilterBackendOptions);
}
+1 -1
View File
@@ -2237,7 +2237,7 @@ declare namespace gapi.client {
/** Tag format type for the floodlight activity. If left blank, the tag format will default to HTML. */
tagFormat?: string;
/**
* Value of the cat= paramter in the floodlight tag, which the ad servers use to identify the activity. This is optional: if empty, a new tag string will
* Value of the cat= parameter in the floodlight tag, which the ad servers use to identify the activity. This is optional: if empty, a new tag string will
* be generated for you. This string must be 1 to 8 characters long, with valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string must also be
* unique among activities of the same activity group. This field is read-only after insertion.
*/
+1 -1
View File
@@ -28,7 +28,7 @@ declare namespace i18nextBrowserLanguageDetector {
interface CustomDetector {
name: string;
// todo: Checks paramters type.
// todo: Checks parameters type.
cacheUserLanguage(lng: string, options: {}): void;
lookup(options: {}): string;
}
+1 -1
View File
@@ -5626,7 +5626,7 @@ declare module "path" {
/**
* The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
*
* Starting from leftmost {from} paramter, resolves {to} to an absolute path.
* Starting from leftmost {from} parameter, resolves {to} to an absolute path.
*
* If {to} isn't already absolute, {from} arguments are prepended in right to left order,
* until an absolute path is found. If after using all {from} paths still no absolute path is found,
+1 -1
View File
@@ -1483,7 +1483,7 @@ declare module "path" {
/**
* The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
*
* Starting from leftmost {from} paramter, resolves {to} to an absolute path.
* Starting from leftmost {from} parameter, resolves {to} to an absolute path.
*
* If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, the current working directory is used as well. The resulting path is normalized, and trailing slashes are removed unless the path gets resolved to the root directory.
*
+1 -1
View File
@@ -2055,7 +2055,7 @@ declare module "path" {
/**
* The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
*
* Starting from leftmost {from} paramter, resolves {to} to an absolute path.
* Starting from leftmost {from} parameter, resolves {to} to an absolute path.
*
* If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, the current working directory is used as well. The resulting path is normalized, and trailing slashes are removed unless the path gets resolved to the root directory.
*
+1 -1
View File
@@ -3040,7 +3040,7 @@ declare module "path" {
/**
* The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
*
* Starting from leftmost {from} paramter, resolves {to} to an absolute path.
* Starting from leftmost {from} parameter, resolves {to} to an absolute path.
*
* If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, the current working directory is used as well. The resulting path is normalized, and trailing slashes are removed unless the path gets resolved to the root directory.
*
+1 -1
View File
@@ -3065,7 +3065,7 @@ declare module "path" {
/**
* The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
*
* Starting from leftmost {from} paramter, resolves {to} to an absolute path.
* Starting from leftmost {from} parameter, resolves {to} to an absolute path.
*
* If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, the current working directory is used as well. The resulting path is normalized, and trailing slashes are removed unless the path gets resolved to the root directory.
*
+1 -1
View File
@@ -4770,7 +4770,7 @@ declare module "path" {
/**
* The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
*
* Starting from leftmost {from} paramter, resolves {to} to an absolute path.
* Starting from leftmost {from} parameter, resolves {to} to an absolute path.
*
* If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, the current working directory is used as well. The resulting path is normalized, and trailing slashes are removed unless the path gets resolved to the root directory.
*
+1 -1
View File
@@ -4856,7 +4856,7 @@ declare module "path" {
/**
* The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
*
* Starting from leftmost {from} paramter, resolves {to} to an absolute path.
* Starting from leftmost {from} parameter, resolves {to} to an absolute path.
*
* If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, the current working directory is used as well. The resulting path is normalized, and trailing slashes are removed unless the path gets resolved to the root directory.
*
+3 -3
View File
@@ -1990,7 +1990,7 @@ declare module "../../index" {
* Reverb adds depth to a sound through a large
* number of decaying echoes. It creates the
* perception that sound is occurring in a physical
* space. The p5.Reverb has paramters for Time (how
* space. The p5.Reverb has parameters for Time (how
* long does the reverb last) and decayRate (how much
* the sound decays with each echo) that can be set
* with the .set() or .process() methods. The
@@ -2511,7 +2511,7 @@ declare module "../../index" {
maxIterations: number;
/**
* Getters and Setters, setting any paramter will
* Getters and Setters, setting any parameter will
* result in a change in the clock's frequency, that
* will be reflected after the next callback beats
* per minute (defaults to 60)
@@ -2588,7 +2588,7 @@ declare module "../../index" {
): void;
/**
* Set the paramters of a compressor.
* Set the parameters of a compressor.
* @param attack The amount of time (in seconds) to
* reduce the gain by 10dB, default = .003, range 0 -
* 1
+1 -1
View File
@@ -265,7 +265,7 @@ export interface QueryParserOptions {
}
/**
* Parses URL query paramters into `req.query`. Many options correspond directly to option defined for the underlying [qs.parse](https://github.com/ljharb/qs)
* Parses URL query parameter into `req.query`. Many options correspond directly to option defined for the underlying [qs.parse](https://github.com/ljharb/qs)
*/
export function queryParser(options?: QueryParserOptions): RequestHandler;
+1 -1
View File
@@ -1343,7 +1343,7 @@ export namespace plugins {
}
/**
* Parses URL query paramters into `req.query`. Many options correspond directly to option defined for the underlying [qs.parse](https://github.com/ljharb/qs)
* Parses URL query parameters into `req.query`. Many options correspond directly to option defined for the underlying [qs.parse](https://github.com/ljharb/qs)
*/
function queryParser(options?: QueryParserOptions): RequestHandler;
+1 -1
View File
@@ -1138,7 +1138,7 @@ export namespace plugins {
}
/**
* Parses URL query paramters into `req.query`. Many options correspond directly to option defined for the underlying [qs.parse](https://github.com/ljharb/qs)
* Parses URL query parameters into `req.query`. Many options correspond directly to option defined for the underlying [qs.parse](https://github.com/ljharb/qs)
*/
function queryParser(options?: QueryParserOptions): RequestHandler;
+2 -2
View File
@@ -20,8 +20,8 @@ declare module __ScrollIntoView {
}
/** type will be 'complete' if the scroll completed or 'canceled' if the current scroll was canceled by a new scroll */
type callbackParamterType = "complete" | "canceled"
type Callback = (type: callbackParamterType) => void
type callbackParameterType = "complete" | "canceled"
type Callback = (type: callbackParameterType) => void
interface ScrollIntoView {
(target: HTMLElement, callback?: __ScrollIntoView.Callback) : void
+1 -1
View File
@@ -30,7 +30,7 @@ export function canonicalDomain(str: string): string;
* The str is the "current" domain-name and the domStr is the "cookie" domain-name.
* Matches according to RFC6265 Section 5.1.3, but it helps to think of it as a "suffix match".
*
* The canonicalize parameter will run the other two paramters through canonicalDomain or not.
* The canonicalize parameter will run the other two parameters through canonicalDomain or not.
*/
export function domainMatch(str: string, domStr: string, canonicalize?: boolean): boolean;
+1 -1
View File
@@ -9,7 +9,7 @@
import pathToRegexp = require('path-to-regexp');
/**
* Params is a key/value object that represents extracted URL paramters.
* Params is a key/value object that represents extracted URL parameters.
* Each URL parameter resolves to a string.
*/
export interface Params {
+1 -1
View File
@@ -96,7 +96,7 @@ export interface CallbackType {
name: string;
/** An IDL Type describing what the callback returns. */
idlType: IDLTypeDescription;
/** A list of arguments, as in function paramters. */
/** A list of arguments, as in function parameters. */
arguments: Argument[];
/** A list of extended attributes. */
extAttrs: ExtendedAttributes[];