Skip to content

Commit

Permalink
fix: Added missing exports
Browse files Browse the repository at this point in the history
  • Loading branch information
iFaxity committed Jun 26, 2022
1 parent aebde3e commit 09ae13b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 16 deletions.
6 changes: 3 additions & 3 deletions src/core/expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface Expression<T = any> extends Predicate<T> {
*
* @param value
* @returns
* @private
* @internal
*/
function defaultPredicate<T>(value: any): Predicate<T> {
return value === true
Expand All @@ -28,7 +28,7 @@ function defaultPredicate<T>(value: any): Predicate<T> {

/**
* Base prototype for Expression
* @private
* @internal
*/
const PredicateExpression: Expression = Object.defineProperties(Object.create(Function), {
and: {
Expand All @@ -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<T>(predicate: Predicate<T>): Expression<T> {
return Object.prototype.isPrototypeOf.call(PredicateExpression, predicate)
Expand Down
14 changes: 7 additions & 7 deletions src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T extends object>(input: any): input is T {
return input != null && typeof input == 'object';
Expand All @@ -16,7 +16,7 @@ export function isObject<T extends object>(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<string, any>,
Expand All @@ -36,7 +36,7 @@ export function deepEqual<
* @param source
* @param comparer
* @returns
* @private
* @internal
*/
export function createOrderedEnumerable<T>(comparer: Comparison<T>): Pipe<Enumerable<T>, OrderedEnumerable<T>> {
return (source) => {
Expand All @@ -57,7 +57,7 @@ export function createOrderedEnumerable<T>(comparer: Comparison<T>): Pipe<Enumer
*
* @param comparer
* @returns
* @private
* @internal
*/
export function createOrderedExtension<T>(comparer: Comparison<T>): Pipe<OrderedEnumerable<T>, OrderedEnumerable<T>> {
return function(source) {
Expand All @@ -74,7 +74,7 @@ export function createOrderedExtension<T>(comparer: Comparison<T>): Pipe<Ordered
*
* @param key
* @returns
* @private
* @internal
*/
export function createAscendingComparer<T, TKey>(key: Key<T, TKey>): Comparison<T> {
return (first, second) => {
Expand All @@ -95,7 +95,7 @@ export function createAscendingComparer<T, TKey>(key: Key<T, TKey>): Comparison<
*
* @param key
* @returns
* @private
* @internal
*/
export function createDescendingComparer<T, TKey>(key: Key<T, TKey>): Comparison<T> {
return (first, second) => {
Expand All @@ -117,7 +117,7 @@ export function createDescendingComparer<T, TKey>(key: Key<T, TKey>): Comparison
* @param key
* @param iter
* @returns
* @private
* @internal
*/
export function createGroup<TKey, TElement>(key: TKey, iter: Enumerable<TElement>): Grouping<TKey, TElement> {
const group = iter as Grouping<TKey, TElement>;
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/paging/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
1 change: 1 addition & 0 deletions src/projection/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './from';
export * from './linq';
export * from './of';
export * from './pipe';
export * from './range';
Expand Down
6 changes: 2 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,20 @@
"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,
"forceConsistentCasingInFileNames": true
},
"include": [
"src/*.ts"
],
"exclude": [
"src/*.spec.ts"
]
}

0 comments on commit 09ae13b

Please sign in to comment.