@sofiakb/elf-js 0.2.2 → 0.2.3-dev.0
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/dist/common/env/environment.d.ts +5 -0
- package/dist/common/env/utils/env.utils.d.ts +6 -0
- package/dist/common/env/utils/env.utils.spec.d.ts +1 -0
- package/dist/composables/useColors.d.ts +6 -0
- package/dist/composables/useColors.spec.d.ts +1 -0
- package/dist/composables/useSearch.d.ts +7 -0
- package/dist/composables/useSearch.spec.d.ts +1 -0
- package/dist/elf-js.es.js +1395 -614
- package/dist/elf-js.umd.js +33 -33
- package/dist/main.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Environment } from '../environment.ts';
|
|
2
|
+
export declare const isEnv: (source: Environment, env: Environment) => boolean;
|
|
3
|
+
export declare const isDevelopment: (env: Environment) => boolean;
|
|
4
|
+
export declare const isProduction: (env: Environment) => boolean;
|
|
5
|
+
export declare const isStaging: (env: Environment) => boolean;
|
|
6
|
+
export declare const environmentFromString: (env: string) => Environment;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type NestedKeyOf<ObjectType extends object> = {
|
|
2
|
+
[Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object ? `${Key}` | `${Key}.${NestedKeyOf<ObjectType[Key]>}` : `${Key}`;
|
|
3
|
+
}[keyof ObjectType & (string | number)];
|
|
4
|
+
export declare const useSearch: () => {
|
|
5
|
+
searchBy: <T extends object>(items: T[], searchValue: string, keys?: Array<NestedKeyOf<T>>) => T[];
|
|
6
|
+
};
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|