From 09ae13b6a2f6a987cd77e94e0b3cfae6b53df2b5 Mon Sep 17 00:00:00 2001 From: iFaxity Date: Sun, 26 Jun 2022 18:06:58 +0200 Subject: [PATCH] fix: Added missing exports --- src/core/expression.ts | 6 +++--- src/core/utils.ts | 14 +++++++------- src/index.ts | 2 +- src/paging/index.ts | 2 +- src/projection/index.ts | 1 + tsconfig.json | 6 ++---- 6 files changed, 15 insertions(+), 16 deletions(-) diff --git a/src/core/expression.ts b/src/core/expression.ts index b67f3bb..f7797e8 100644 --- a/src/core/expression.ts +++ b/src/core/expression.ts @@ -18,7 +18,7 @@ export interface Expression extends Predicate { * * @param value * @returns - * @private + * @internal */ function defaultPredicate(value: any): Predicate { return value === true @@ -28,7 +28,7 @@ function defaultPredicate(value: any): Predicate { /** * Base prototype for Expression - * @private + * @internal */ const PredicateExpression: Expression = Object.defineProperties(Object.create(Function), { and: { @@ -47,7 +47,7 @@ const PredicateExpression: Expression = Object.defineProperties(Object.create(Fu * Helper function to ensure the predicate is an expression * @param predicate - Predicate to mutate the expression for * @returns The created Expression - * @private + * @internal */ function createExpression(predicate: Predicate): Expression { return Object.prototype.isPrototypeOf.call(PredicateExpression, predicate) diff --git a/src/core/utils.ts b/src/core/utils.ts index 8baa835..59f5d1d 100644 --- a/src/core/utils.ts +++ b/src/core/utils.ts @@ -5,7 +5,7 @@ import { Comparison, Enumerable, Grouping, OrderedEnumerable, Pipe, Key } from ' * Checks if the argument passed is an object * @param input - Input data to verify if it is an object * @returns A boolean with the result - * @private + * @internal */ export function isObject(input: any): input is T { return input != null && typeof input == 'object'; @@ -16,7 +16,7 @@ export function isObject(input: any): input is T { * @param a - Object a to compare * @param b - Object to compare a against * @returns A boolean with the result - * @private + * @internal */ export function deepEqual< T extends Record, @@ -36,7 +36,7 @@ export function deepEqual< * @param source * @param comparer * @returns - * @private + * @internal */ export function createOrderedEnumerable(comparer: Comparison): Pipe, OrderedEnumerable> { return (source) => { @@ -57,7 +57,7 @@ export function createOrderedEnumerable(comparer: Comparison): Pipe(comparer: Comparison): Pipe, OrderedEnumerable> { return function(source) { @@ -74,7 +74,7 @@ export function createOrderedExtension(comparer: Comparison): Pipe(key: Key): Comparison { return (first, second) => { @@ -95,7 +95,7 @@ export function createAscendingComparer(key: Key): Comparison< * * @param key * @returns - * @private + * @internal */ export function createDescendingComparer(key: Key): Comparison { return (first, second) => { @@ -117,7 +117,7 @@ export function createDescendingComparer(key: Key): Comparison * @param key * @param iter * @returns - * @private + * @internal */ export function createGroup(key: TKey, iter: Enumerable): Grouping { const group = iter as Grouping; diff --git a/src/index.ts b/src/index.ts index 3a092c2..9cb760c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,7 @@ export * from './core/enumerator'; export * from './core/expression'; export * from './core/types'; - +// Export every methods export * from './aggregate'; export * from './group'; export * from './join'; diff --git a/src/paging/index.ts b/src/paging/index.ts index a1e1f32..7ef5d20 100644 --- a/src/paging/index.ts +++ b/src/paging/index.ts @@ -7,5 +7,5 @@ export * from './skip'; export * from './skipLast'; export * from './skipWhile'; export * from './take'; -export * from './skip'; export * from './takeLast'; +export * from './takeWhile'; diff --git a/src/projection/index.ts b/src/projection/index.ts index 48ac928..8ee736b 100644 --- a/src/projection/index.ts +++ b/src/projection/index.ts @@ -1,4 +1,5 @@ export * from './from'; +export * from './linq'; export * from './of'; export * from './pipe'; export * from './range'; diff --git a/tsconfig.json b/tsconfig.json index d3a96e5..b379235 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,13 +2,14 @@ "compilerOptions": { "module": "esnext", "target": "esnext", + "composite": true, "moduleResolution": "node", "declaration": true, "declarationMap": true, "sourceMap": true, "declarationDir": "./typings", "outDir": "./dist", - "baseUrl": "./", + "baseUrl": "./src", "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, @@ -16,8 +17,5 @@ }, "include": [ "src/*.ts" - ], - "exclude": [ - "src/*.spec.ts" ] }