diff --git a/_official-blog-tutorial/app/singleton.server.ts b/_official-blog-tutorial/app/singleton.server.ts index 4eae6307..6d933284 100644 --- a/_official-blog-tutorial/app/singleton.server.ts +++ b/_official-blog-tutorial/app/singleton.server.ts @@ -4,7 +4,7 @@ export const singleton = ( name: string, - valueFactory: () => Value + valueFactory: () => Value, ): Value => { const g = global as any; g.__singletons ??= {}; diff --git a/_official-jokes/app/utils/singleton.server.ts b/_official-jokes/app/utils/singleton.server.ts index 4eae6307..6d933284 100644 --- a/_official-jokes/app/utils/singleton.server.ts +++ b/_official-jokes/app/utils/singleton.server.ts @@ -4,7 +4,7 @@ export const singleton = ( name: string, - valueFactory: () => Value + valueFactory: () => Value, ): Value => { const g = global as any; g.__singletons ??= {};