@financial-times/dotcom-server-app-context 7.2.7 → 7.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ import { TAppContext } from './types';
2
+ export declare type TAppContextOptions = {
3
+ appContext?: Partial<TAppContext>;
4
+ };
5
+ export declare class AppContext {
6
+ private data;
7
+ constructor(options?: TAppContextOptions);
8
+ get(property: string): any;
9
+ set(property: string, value: any): void;
10
+ getAll(): Partial<TAppContext>;
11
+ }
@@ -0,0 +1,5 @@
1
+ declare type AnyObject = {
2
+ [key: string]: any;
3
+ };
4
+ export default function filterEmptyProperties(properties: AnyObject): AnyObject;
5
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './AppContext';
2
+ export type { TAppContext } from './types';
@@ -0,0 +1 @@
1
+ export default function validate(field: string, value: any): boolean;