Browse Source

Bump `tslint-xo`

iss58
Sindre Sorhus 7 years ago
parent
commit
184a1ebd8d
  1. 4
      package.json
  2. 2
      source/lib/predicates/predicate.ts

4
package.json

@ -58,8 +58,8 @@
"license-webpack-plugin": "^1.1.1", "license-webpack-plugin": "^1.1.1",
"lodash.isequal": "^4.5.0", "lodash.isequal": "^4.5.0",
"nyc": "^11.2.1", "nyc": "^11.2.1",
"tslint": "^5.8.0", "tslint": "^5.9.1",
"tslint-xo": "^0.4.0", "tslint-xo": "^0.5.0",
"typedoc": "^0.9.0", "typedoc": "^0.9.0",
"typescript": "^2.6.2", "typescript": "^2.6.2",
"vali-date": "^1.0.0", "vali-date": "^1.0.0",

2
source/lib/predicates/predicate.ts

@ -27,7 +27,7 @@ export const validatorSymbol = Symbol('validators');
export class Predicate<T = any> { export class Predicate<T = any> {
constructor( constructor(
type: string, type: string,
private context: Context = { private readonly context: Context = {
validators: [] validators: []
} }
) { ) {

Loading…
Cancel
Save