@c-rex/types 0.1.1 → 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/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { LOG_LEVELS, ALL, LOG_CATEGORIES, RESULT_VIEW_STYLES } from '@c-rex/constants';
1
+ import { LOG_LEVELS, ALL, LOG_CATEGORIES, RESULT_VIEW_STYLES, FILES_EXTENSIONS, RESULT_TYPES } from '@c-rex/constants';
2
2
 
3
3
  type QueryParams = {
4
4
  key: string;
@@ -7,5 +7,11 @@ type QueryParams = {
7
7
  type LogLevelType = keyof typeof LOG_LEVELS | typeof ALL;
8
8
  type LogCategoriesType = typeof LOG_CATEGORIES[number] | typeof ALL;
9
9
  type ResultViewStyles = typeof RESULT_VIEW_STYLES[number];
10
+ type FilesExtensions = keyof typeof FILES_EXTENSIONS;
11
+ type ResultTypes = keyof typeof RESULT_TYPES;
12
+ type FileRenditionType = {
13
+ format: string;
14
+ link: string;
15
+ };
10
16
 
11
- export type { LogCategoriesType, LogLevelType, QueryParams, ResultViewStyles };
17
+ export type { FileRenditionType, FilesExtensions, LogCategoriesType, LogLevelType, QueryParams, ResultTypes, ResultViewStyles };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { LOG_LEVELS, ALL, LOG_CATEGORIES, RESULT_VIEW_STYLES } from '@c-rex/constants';
1
+ import { LOG_LEVELS, ALL, LOG_CATEGORIES, RESULT_VIEW_STYLES, FILES_EXTENSIONS, RESULT_TYPES } from '@c-rex/constants';
2
2
 
3
3
  type QueryParams = {
4
4
  key: string;
@@ -7,5 +7,11 @@ type QueryParams = {
7
7
  type LogLevelType = keyof typeof LOG_LEVELS | typeof ALL;
8
8
  type LogCategoriesType = typeof LOG_CATEGORIES[number] | typeof ALL;
9
9
  type ResultViewStyles = typeof RESULT_VIEW_STYLES[number];
10
+ type FilesExtensions = keyof typeof FILES_EXTENSIONS;
11
+ type ResultTypes = keyof typeof RESULT_TYPES;
12
+ type FileRenditionType = {
13
+ format: string;
14
+ link: string;
15
+ };
10
16
 
11
- export type { LogCategoriesType, LogLevelType, QueryParams, ResultViewStyles };
17
+ export type { FileRenditionType, FilesExtensions, LogCategoriesType, LogLevelType, QueryParams, ResultTypes, ResultViewStyles };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { LOG_CATEGORIES, LOG_LEVELS, ALL, RESULT_VIEW_STYLES } from \"@c-rex/constants\";\n\nexport type QueryParams = { key: string; value: string };\nexport type LogLevelType = keyof typeof LOG_LEVELS | typeof ALL\nexport type LogCategoriesType = typeof LOG_CATEGORIES[number] | typeof ALL;\nexport type ResultViewStyles = typeof RESULT_VIEW_STYLES[number];"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { LOG_CATEGORIES, LOG_LEVELS, ALL, RESULT_VIEW_STYLES, FILES_EXTENSIONS, RESULT_TYPES } from \"@c-rex/constants\";\n\nexport type QueryParams = { key: string; value: string };\nexport type LogLevelType = keyof typeof LOG_LEVELS | typeof ALL\nexport type LogCategoriesType = typeof LOG_CATEGORIES[number] | typeof ALL;\nexport type ResultViewStyles = typeof RESULT_VIEW_STYLES[number];\nexport type FilesExtensions = keyof typeof FILES_EXTENSIONS;\nexport type ResultTypes = keyof typeof RESULT_TYPES\n\nexport type FileRenditionType = {\n format: string;\n link: string;\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c-rex/types",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "module": "./dist/index.mjs",
@@ -14,7 +14,9 @@
14
14
  "dev": "tsup --watch",
15
15
  "build": "tsup",
16
16
  "test:watch": "jest --watch",
17
- "test": "jest"
17
+ "test": "jest",
18
+ "lint": "eslint .",
19
+ "lint:fix": "eslint . --fix"
18
20
  },
19
21
  "devDependencies": {
20
22
  "@c-rex/eslint-config": "*",