@sailfish-ai/sf-veritas 0.1.2 → 0.1.3
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.
- package/README.md +10 -8
- package/dist/sf-veritas.cjs +8 -8
- package/dist/sf-veritas.mjs +354 -353
- package/dist/types/setupConfig.d.ts +6 -2
- package/package.json +1 -1
|
@@ -53,6 +53,10 @@ export interface SetupOptions {
|
|
|
53
53
|
*/
|
|
54
54
|
nodeModulesToCollectLocalVariablesOn?: string[];
|
|
55
55
|
}
|
|
56
|
+
export interface GetOrCreateConfig {
|
|
57
|
+
config: AppConfig;
|
|
58
|
+
created: boolean;
|
|
59
|
+
}
|
|
56
60
|
declare class AppConfig {
|
|
57
61
|
apiKey: string;
|
|
58
62
|
apiGraphqlEndpoint: string;
|
|
@@ -79,10 +83,10 @@ declare class AppConfig {
|
|
|
79
83
|
setServiceIdentificationReceived(value: boolean): void;
|
|
80
84
|
}
|
|
81
85
|
/**
|
|
82
|
-
*
|
|
86
|
+
* Create the global configuration with the provided SetupOptions or return if it is already created.
|
|
83
87
|
* This should be called once at the start of the application.
|
|
84
88
|
*/
|
|
85
|
-
export declare function
|
|
89
|
+
export declare function getOrCreateConfig(options: SetupOptions): GetOrCreateConfig;
|
|
86
90
|
/**
|
|
87
91
|
* Retrieves the global configuration instance.
|
|
88
92
|
* Ensures the configuration is initialized before accessing.
|