Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
refactor: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Dec 9, 2019
1 parent 0d6acc7 commit 3ef9830
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/CacheManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
* is defined.
*/
export class CacheManager<T extends any> {
private _cache: Map<string, T> = new Map()
private cache: Map<string, T> = new Map()

/**
* Add to cache
*/
public set (key: string, value: T): void {
this._cache.set(key, value)
this.cache.set(key, value)
}

/**
* Read from cache
*/
public get (key: string): T | undefined {
return this._cache.get(key)
return this.cache.get(key)
}
}
3 changes: 1 addition & 2 deletions src/Contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
* file that was distributed with this source code.
*/

import { ErrorFormatterContract } from 'indicative-compiler'
import { ErrorCollectorFn } from 'indicative-compiler/build/src/contracts'
import { Schema, Messages, TypedSchema, ParsedTypedSchema } from 'indicative-parser'
import { ErrorFormatterContract, ErrorCollectorFn } from 'indicative-compiler'

/**
* Shape of validator config
Expand Down
2 changes: 1 addition & 1 deletion src/Sanitizer/extend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* file that was distributed with this source code.
*/

import { sanitizations } from 'indicative-rules'
import { ParsedRule } from 'indicative-parser'
import { sanitizations } from 'indicative-rules'
import { SanitizationDefination } from 'indicative-compiler'
import { sanitizations as sanitizationsList } from './sanitizations'

Expand Down

0 comments on commit 3ef9830

Please sign in to comment.