Skip to content

Commit

Permalink
add dists
Browse files Browse the repository at this point in the history
  • Loading branch information
sasaplus1 committed Aug 21, 2020
1 parent 8202ac9 commit 91750de
Show file tree
Hide file tree
Showing 27 changed files with 2,754 additions and 4 deletions.
1 change: 1 addition & 0 deletions dist/cjs/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { deepcopy } from './src/index';
5 changes: 5 additions & 0 deletions dist/cjs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cjs/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions dist/cjs/src/buffer.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* is it Buffer?
*
* @private
*/
export declare const isBuffer: typeof Buffer.isBuffer;
/**
* clone Buffer
*
* @private
*/
export declare const cloneBuffer: typeof Buffer.from;
39 changes: 39 additions & 0 deletions dist/cjs/src/buffer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cjs/src/buffer.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions dist/cjs/src/clone.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* clone value
*
* @private
* @param value
* @param valueType
*/
export declare function clone(value: unknown, valueType: string): unknown;
export declare type Customizer = (value: unknown, type: string) => unknown;
/**
* copy value with customizer function
*
* @private
* @param value
* @param type
*/
export declare function copy(value: unknown, valueType: string, customizer?: Customizer | null): unknown;
128 changes: 128 additions & 0 deletions dist/cjs/src/clone.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cjs/src/clone.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions dist/cjs/src/collection.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
export declare type Collection = IArguments | Array<unknown> | Map<unknown, unknown> | Record<string | number | symbol, unknown> | Set<unknown>;
/**
* is it Collection?
*
* @private
* @param valueType
*/
export declare function isCollection(valueType: string): boolean;
/**
* get keys from Collection
*
* @private
* @param collection
* @param collectionType
*/
export declare function getKeys(collection: Collection, collectionType: string): Array<string | symbol>;
/**
* get value from Collection
*
* @private
* @param collection
* @param key
* @param collectionType
*/
export declare function getValue(collection: Collection, key: unknown, collectionType: string): unknown;
/**
* set value to collection
*
* @param collection
* @param key
* @param value
* @param collectionType
*/
export declare function setValue(collection: Collection, key: unknown, value: unknown, collectionType: string): Collection;
99 changes: 99 additions & 0 deletions dist/cjs/src/collection.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cjs/src/collection.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions dist/cjs/src/detector.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export declare const typeArguments = "Arguments";
export declare const typeArray = "Array";
export declare const typeObject = "Object";
export declare const typeMap = "Map";
export declare const typeSet = "Set";
/**
* detect value type
*
* @param value
*/
export declare function detectType(value: unknown): string;
Loading

0 comments on commit 91750de

Please sign in to comment.