Skip to content

Commit

Permalink
fix: correct dots at end of sentence
Browse files Browse the repository at this point in the history
Description usually already contains a dot
  • Loading branch information
sokra authored Mar 11, 2020
1 parent 52fc92b commit 7284beb
Show file tree
Hide file tree
Showing 8 changed files with 11,476 additions and 5,133 deletions.
1 change: 1 addition & 0 deletions declarations/keywords/absolutePath.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default addAbsolutePathKeyword;
export type Ajv = import('ajv').Ajv;
export type ValidateFunction = import('ajv').ValidateFunction;
export type SchemaUtilErrorObject = import('ajv').ErrorObject & {
children?: import('ajv').ErrorObject[] | undefined;
};
Expand Down
55 changes: 55 additions & 0 deletions declarations/util/Range.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,59 @@ declare namespace Range {
};
}
type RangeValue = [number, boolean];
/**
* @param {"left" | "right"} side
* @param {boolean} exclusive
* @returns {">" | ">=" | "<" | "<="}
*/
declare function getOperator(
side: 'left' | 'right',
exclusive: boolean
): '>' | '>=' | '<' | '<=';
/**
* @param {number} value
* @param {boolean} logic is not logic applied
* @param {boolean} exclusive is range exclusive
* @returns {string}
*/
declare function formatRight(
value: number,
logic: boolean,
exclusive: boolean
): string;
/**
* @param {number} value
* @param {boolean} logic is not logic applied
* @param {boolean} exclusive is range exclusive
* @returns {string}
*/
declare function formatLeft(
value: number,
logic: boolean,
exclusive: boolean
): string;
/**
* @param {number} start left side value
* @param {number} end right side value
* @param {boolean} startExclusive is range exclusive from left side
* @param {boolean} endExclusive is range exclusive from right side
* @param {boolean} logic is not logic applied
* @returns {string}
*/
declare function formatRange(
start: number,
end: number,
startExclusive: boolean,
endExclusive: boolean,
logic: boolean
): string;
/**
* @param {Array<RangeValue>} values
* @param {boolean} logic is not logic applied
* @return {RangeValue} computed value and it's exclusive flag
*/
declare function getRangeValue(
values: [number, boolean][],
logic: boolean
): [number, boolean];
type RangeValueCallback = (rangeValue: [number, boolean]) => boolean;
2 changes: 1 addition & 1 deletion declarations/validate.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ declare function validate(
| import('json-schema').JSONSchema4
| import('json-schema').JSONSchema6
| import('json-schema').JSONSchema7,
options: any,
options: object | object[],
configuration?: ValidationErrorConfiguration | undefined
): void;
declare namespace validate {
Expand Down
Loading

0 comments on commit 7284beb

Please sign in to comment.