Skip to content

Commit c121b03

Browse files
committed
style: fix Prettier formatting
1 parent f3ae52f commit c121b03

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

ts-cache/src/types/cache.types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ export interface IMultiSynchronousCacheType<C = unknown> {
5353
export interface IAsynchronousCacheType<C = unknown> {
5454
getItem<T>(key: string): Promise<T | undefined>;
5555

56-
setItem<T extends C = C>(key: string, content: T | undefined, options?: ICacheOptions): Promise<void>;
56+
setItem<T extends C = C>(
57+
key: string,
58+
content: T | undefined,
59+
options?: ICacheOptions
60+
): Promise<void>;
5761

5862
clear(): Promise<void>;
5963
}

ts-cache/test/cache.decorator.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ class CustomJsonStrategy implements ISyncKeyStrategy {
8686
* This custom test key strategy only uses the method name as caching key
8787
*/
8888
class CustomKeyStrategy implements IAsyncKeyStrategy {
89-
public getKey(_className: string, methodName: string, _args: unknown[]): Promise<string> | string {
89+
public getKey(
90+
_className: string,
91+
methodName: string,
92+
_args: unknown[]
93+
): Promise<string> | string {
9094
return new Promise(resolve => {
9195
setTimeout(() => resolve(methodName), 0);
9296
});

ts-cache/test/multicache.decorator.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ class TestClassOne {
4141
callCount = 0;
4242

4343
@MultiCache([canonicalLRUStrategy, canonicalRedisStrategy], 0, canonicalKeyStrategy)
44-
public async getCanonicalUrlsFromCache(
45-
urls: UrlEntry[],
46-
geoRegion: string
47-
): Promise<string[]> {
44+
public async getCanonicalUrlsFromCache(urls: UrlEntry[], geoRegion: string): Promise<string[]> {
4845
console.log('getCanonicalUrlsFromCache', urls, geoRegion);
4946
return urls.map(p => {
5047
return p.path + 'RETURN VALUE' + geoRegion;

0 commit comments

Comments
 (0)