@everipedia/iq-utils 0.1.0 → 0.1.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.
- package/CHANGELOG.md +6 -0
- package/build/main/index.d.ts +1 -0
- package/build/main/index.js +2 -1
- package/build/main/types/wikiBuilder.d.ts +17 -0
- package/build/main/types/wikiBuilder.js +3 -0
- package/build/module/index.d.ts +1 -0
- package/build/module/index.js +2 -1
- package/build/module/types/wikiBuilder.d.ts +17 -0
- package/build/module/types/wikiBuilder.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/build/main/index.d.ts
CHANGED
package/build/main/index.js
CHANGED
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./lib/wikiScore"), exports);
|
|
18
18
|
__exportStar(require("./types/wiki"), exports);
|
|
19
|
-
|
|
19
|
+
__exportStar(require("./types/wikiBuilder"), exports);
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLGtEQUFnQztBQUNoQywrQ0FBNkI7QUFDN0Isc0RBQW9DIn0=
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Author, BaseCategory, BaseTag, Image, LanguagesISOEnum, LinkedWikis, MData, Media, User, Wiki } from './wiki';
|
|
2
|
+
type DeepPartial<T> = {
|
|
3
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
4
|
+
};
|
|
5
|
+
export type WikiTypeBuilderExtender = DeepPartial<{
|
|
6
|
+
categories: BaseCategory[];
|
|
7
|
+
tags: BaseTag[];
|
|
8
|
+
images: Image[];
|
|
9
|
+
media: Media[];
|
|
10
|
+
user: User;
|
|
11
|
+
metadata: MData[];
|
|
12
|
+
linkedWikis?: LinkedWikis;
|
|
13
|
+
language: LanguagesISOEnum;
|
|
14
|
+
author: Author;
|
|
15
|
+
}>;
|
|
16
|
+
export type WikiTypeBuilder<C extends WikiTypeBuilderExtender, L extends keyof Wiki> = C & Pick<Wiki, Exclude<L, keyof C>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lraUJ1aWxkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdHlwZXMvd2lraUJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
package/build/module/index.d.ts
CHANGED
package/build/module/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export * from './lib/wikiScore';
|
|
2
2
|
export * from './types/wiki';
|
|
3
|
-
|
|
3
|
+
export * from './types/wikiBuilder';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLHFCQUFxQixDQUFDIn0=
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Author, BaseCategory, BaseTag, Image, LanguagesISOEnum, LinkedWikis, MData, Media, User, Wiki } from './wiki';
|
|
2
|
+
type DeepPartial<T> = {
|
|
3
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
4
|
+
};
|
|
5
|
+
export type WikiTypeBuilderExtender = DeepPartial<{
|
|
6
|
+
categories: BaseCategory[];
|
|
7
|
+
tags: BaseTag[];
|
|
8
|
+
images: Image[];
|
|
9
|
+
media: Media[];
|
|
10
|
+
user: User;
|
|
11
|
+
metadata: MData[];
|
|
12
|
+
linkedWikis?: LinkedWikis;
|
|
13
|
+
language: LanguagesISOEnum;
|
|
14
|
+
author: Author;
|
|
15
|
+
}>;
|
|
16
|
+
export type WikiTypeBuilder<C extends WikiTypeBuilderExtender, L extends keyof Wiki> = C & Pick<Wiki, Exclude<L, keyof C>>;
|
|
17
|
+
export {};
|