From a857687f4f2f02e63e3bc6ea2c6c6a1cfcfb3ad1 Mon Sep 17 00:00:00 2001 From: Emanuel Tesar Date: Sat, 18 Jan 2020 13:23:33 +0100 Subject: [PATCH 1/5] Create commons folder --- docs/globals.html | 210 +- docs/index.html | 210 +- .../interfaces/{dictionary.html => dict.html} | 45 +- docs/interfaces/state.html | 2578 +++++++++++++++++ docs/interfaces/user.html | 2545 ++++++++++++++++ package.json | 4 +- src/{ => common}/types.ts | 0 src/{ => common}/utils.test.ts | 0 src/{ => common}/utils.ts | 0 src/lib/exist.ts | 4 +- src/lib/filter.ts | 4 +- src/lib/funSet.ts | 0 src/lib/get.ts | 4 +- src/lib/map.ts | 4 +- src/lib/omit.ts | 4 +- src/lib/pick.ts | 4 +- src/lib/set.ts | 8 +- src/lib/unset.ts | 14 +- src/lib/update.ts | 12 +- src/test/filter.test.ts | 2 +- src/test/get.test.ts | 2 +- src/{ => test}/integration.test.ts | 11 +- src/test/map.test.ts | 2 +- src/test/omit.test.ts | 2 +- src/test/pick.test.ts | 2 +- src/test/set.test.ts | 2 +- 26 files changed, 5227 insertions(+), 446 deletions(-) rename docs/interfaces/{dictionary.html => dict.html} (99%) create mode 100644 docs/interfaces/state.html create mode 100644 docs/interfaces/user.html rename src/{ => common}/types.ts (100%) rename src/{ => common}/utils.test.ts (100%) rename src/{ => common}/utils.ts (100%) create mode 100644 src/lib/funSet.ts rename src/{ => test}/integration.test.ts (73%) diff --git a/docs/globals.html b/docs/globals.html index 7ebe001..a2d408c 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -2377,23 +2377,14 @@ @@ -2551,17 +2536,9 @@

Index

Interfaces

-
-
-

Type aliases

-
@@ -2581,100 +2558,12 @@

Variables

Functions

-
-

Type aliases

-
- -

Nullable

-
Nullable<T>: T | null
- -

Type parameters

-
    -
  • -

    T

    -
  • -
-
-
- -

Optional

-
Optional<T>: T | null | undefined
- -

Type parameters

-
    -
  • -

    T

    -
  • -
-
-
- -

Undefinable

-
Undefinable<T>: T | undefined
- -

Type parameters

-
    -
  • -

    T

    -
  • -
-
-
- -

UnwrapOptional

-
UnwrapOptional<T>: Exclude<T, null | undefined>
- -

Type parameters

- -
-
- -

Without

-
Without<T, K>: Without<T, K>
- -

Type parameters

-
    -
  • -

    T

    -
  • -
  • -

    K

    -
  • -
-
-

Variables

@@ -2683,7 +2572,7 @@

Const exist

exist: ExistFn = existImplementation
@@ -2712,7 +2601,7 @@

Const filter

filter: FilterFn = filterImplementation
@@ -2743,7 +2632,7 @@

Const get

get: GetFn = getImplementation
@@ -2779,7 +2668,7 @@

Const map

map: MapFn = mapImplementation
@@ -2812,7 +2701,7 @@

Const omit

omit: OmitFn = omitImplementation
@@ -2844,7 +2733,7 @@

Const pick

pick: PickFn = pickImplementation
@@ -2876,7 +2765,7 @@

Const set

set: SetFn = setImplementation
@@ -2912,7 +2801,7 @@

Const unset

unset: UnsetFn = unsetImplementation
@@ -2943,7 +2832,7 @@

Const update

update: UpdateFn = updateImplementation
@@ -2976,71 +2865,22 @@

Const update

Functions

- -

isNullOrUndefined

-
    -
  • isNullOrUndefined(arg: any): boolean
  • -
-
    -
  • - -

    Parameters

    -
      -
    • -
      arg: any
      -
    • -
    -

    Returns boolean

    -
  • -
-
-
- -

isObject

+ +

Const idFn

    -
  • isObject(value: any): boolean
  • +
  • idFn(x: any): any
  • Parameters

    • -
      value: any
      -
    • -
    -

    Returns boolean

    -
  • -
-
-
- -

shallowCopy

-
    -
  • shallowCopy(value: any, defaultValue?: any): any
  • -
-
-
-

Type aliases

-
- -

Nullable

-
Nullable<T>: T | null
- -

Type parameters

-
    -
  • -

    T

    -
  • -
-
-
- -

Optional

-
Optional<T>: T | null | undefined
- -

Type parameters

-
    -
  • -

    T

    -
  • -
-
-
- -

Undefinable

-
Undefinable<T>: T | undefined
- -

Type parameters

-
    -
  • -

    T

    -
  • -
-
-
- -

UnwrapOptional

-
UnwrapOptional<T>: Exclude<T, null | undefined>
- -

Type parameters

- -
-
- -

Without

-
Without<T, K>: Without<T, K>
- -

Type parameters

-
    -
  • -

    T

    -
  • -
  • -

    K

    -
  • -
-
-

Variables

@@ -2684,7 +2573,7 @@

Const exist

exist: ExistFn = existImplementation
@@ -2713,7 +2602,7 @@

Const filter

filter: FilterFn = filterImplementation
@@ -2744,7 +2633,7 @@

Const get

get: GetFn = getImplementation
@@ -2780,7 +2669,7 @@

Const map

map: MapFn = mapImplementation
@@ -2813,7 +2702,7 @@

Const omit

omit: OmitFn = omitImplementation
@@ -2845,7 +2734,7 @@

Const pick

pick: PickFn = pickImplementation
@@ -2877,7 +2766,7 @@

Const set

set: SetFn = setImplementation
@@ -2913,7 +2802,7 @@

Const unset

unset: UnsetFn = unsetImplementation
@@ -2944,7 +2833,7 @@

Const update

update: UpdateFn = updateImplementation
@@ -2977,71 +2866,22 @@

Const update

Functions

- -

isNullOrUndefined

-
    -
  • isNullOrUndefined(arg: any): boolean
  • -
-
    -
  • - -

    Parameters

    -
      -
    • -
      arg: any
      -
    • -
    -

    Returns boolean

    -
  • -
-
-
- -

isObject

+ +

Const idFn

    -
  • isObject(value: any): boolean
  • +
  • idFn(x: any): any
  • Parameters

    • -
      value: any
      -
    • -
    -

    Returns boolean

    -
  • -
-
-
- -

shallowCopy

-
    -
  • shallowCopy(value: any, defaultValue?: any): any
  • -
-
    -
  • - -

    Parameters

    -
      -
    • -
      value: any
      -
    • -
    • -
      Optional defaultValue: any
      +
      x: any

    Returns any

    diff --git a/docs/interfaces/dictionary.html b/docs/interfaces/dict.html similarity index 99% rename from docs/interfaces/dictionary.html rename to docs/interfaces/dict.html index 986f05f..1fc1293 100644 --- a/docs/interfaces/dictionary.html +++ b/docs/interfaces/dict.html @@ -3,7 +3,7 @@ - Dictionary | @siegrift/tsfunct + Dict | @siegrift/tsfunct + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + + + + + +
    +
    + Menu +
    +
    +
    +
    +
    + +
    +
    +
    +

    Hierarchy

    +
      +
    • + State +
    • +
    +
    +
    +

    Index

    +
    +
    +
    +

    Properties

    + +
    +
    +
    +
    +
    +

    Properties

    +
    + +

    a

    +
    a: object
    + +
    +

    Type declaration

    +
      +
    +
    +
    +
    + +

    dict

    +
    dict: Dict
    + +
    +
    + +

    Optional optional

    +
    optional: undefined | object
    + +
    +
    + +

    users

    +
    users: User[]
    + +
    +
    +
    +
    +

    Legend

    +
    +
      +
    • Module
    • +
    • Object literal
    • +
    • Variable
    • +
    • Function
    • +
    • Function with type parameter
    • +
    • Index signature
    • +
    • Type alias
    • +
    • Type alias with type parameter
    • +
    +
      +
    • Enumeration
    • +
    • Enumeration member
    • +
    • Property
    • +
    • Method
    • +
    +
      +
    • Interface
    • +
    • Interface with type parameter
    • +
    • Constructor
    • +
    • Property
    • +
    • Method
    • +
    • Index signature
    • +
    +
      +
    • Class
    • +
    • Class with type parameter
    • +
    • Constructor
    • +
    • Property
    • +
    • Method
    • +
    • Accessor
    • +
    • Index signature
    • +
    +
      +
    • Inherited constructor
    • +
    • Inherited property
    • +
    • Inherited method
    • +
    • Inherited accessor
    • +
    +
      +
    • Protected property
    • +
    • Protected method
    • +
    • Protected accessor
    • +
    +
      +
    • Private property
    • +
    • Private method
    • +
    • Private accessor
    • +
    +
      +
    • Static property
    • +
    • Static method
    • +
    +
    +
    +
    +
    +

    Generated using TypeDoc

    +
    +
    +
    + + + \ No newline at end of file diff --git a/docs/interfaces/user.html b/docs/interfaces/user.html new file mode 100644 index 0000000..b6c0212 --- /dev/null +++ b/docs/interfaces/user.html @@ -0,0 +1,2545 @@ + + + + + + User | @siegrift/tsfunct + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + + + + + +
    +
    + Menu +
    +
    +
    +
    +
    + +
    +
    +
    +

    Hierarchy

    +
      +
    • + User +
    • +
    +
    +
    +

    Index

    +
    +
    +
    +

    Properties

    + +
    +
    +
    +
    +
    +

    Properties

    +
    + +

    id

    +
    id: number
    + +
    +
    + +

    key

    +
    key: string
    + +
    +
    +
    +
    +

    Legend

    +
    +
      +
    • Module
    • +
    • Object literal
    • +
    • Variable
    • +
    • Function
    • +
    • Function with type parameter
    • +
    • Index signature
    • +
    • Type alias
    • +
    • Type alias with type parameter
    • +
    +
      +
    • Enumeration
    • +
    • Enumeration member
    • +
    • Property
    • +
    • Method
    • +
    +
      +
    • Interface
    • +
    • Interface with type parameter
    • +
    • Constructor
    • +
    • Property
    • +
    • Method
    • +
    • Index signature
    • +
    +
      +
    • Class
    • +
    • Class with type parameter
    • +
    • Constructor
    • +
    • Property
    • +
    • Method
    • +
    • Accessor
    • +
    • Index signature
    • +
    +
      +
    • Inherited constructor
    • +
    • Inherited property
    • +
    • Inherited method
    • +
    • Inherited accessor
    • +
    +
      +
    • Protected property
    • +
    • Protected method
    • +
    • Protected accessor
    • +
    +
      +
    • Private property
    • +
    • Private method
    • +
    • Private accessor
    • +
    +
      +
    • Static property
    • +
    • Static method
    • +
    +
    +
    +
    +
    +

    Generated using TypeDoc

    +
    +
    +
    + + + \ No newline at end of file diff --git a/package.json b/package.json index 2f3d88c..3231fc0 100644 --- a/package.json +++ b/package.json @@ -27,9 +27,9 @@ "scripts": { "test": "jest", "test-watch": "jest --watch", - "clean": "rm -rf dist", + "clean": "rm -rf dist docs", "build": "yarn clean && yarn tsc --target \"ES5\" --outDir \"dist\" --declaration true && cp package.json dist && cp README.md dist", - "docs": "typedoc --theme minimal --out docs ./src --mode file --exclude 'src/test/*' --excludeNotExported && cp -r ./assets/* docs/assets" + "docs": "typedoc --theme minimal --out docs ./src --mode file --exclude 'src/test/*' --exclude 'src/common/*' --excludeNotExported && cp -r ./assets/* docs/assets" }, "husky": { "hooks": { diff --git a/src/types.ts b/src/common/types.ts similarity index 100% rename from src/types.ts rename to src/common/types.ts diff --git a/src/utils.test.ts b/src/common/utils.test.ts similarity index 100% rename from src/utils.test.ts rename to src/common/utils.test.ts diff --git a/src/utils.ts b/src/common/utils.ts similarity index 100% rename from src/utils.ts rename to src/common/utils.ts diff --git a/src/lib/exist.ts b/src/lib/exist.ts index 9e63dc5..4625d20 100644 --- a/src/lib/exist.ts +++ b/src/lib/exist.ts @@ -1,5 +1,5 @@ -import { Optional, UnwrapOptional as U } from '../types' -import { isNullOrUndefined, isObject } from '../utils' +import { Optional, UnwrapOptional as U } from '../common/types' +import { isNullOrUndefined, isObject } from '../common/utils' interface ExistFn { (source: Optional, path: [K1]): boolean diff --git a/src/lib/filter.ts b/src/lib/filter.ts index faf03a5..c653aff 100644 --- a/src/lib/filter.ts +++ b/src/lib/filter.ts @@ -1,5 +1,5 @@ -import { Dictionary, Nullable, Optional, Undefinable } from '../types' -import { isNullOrUndefined } from '../utils' +import { Dictionary, Nullable, Optional, Undefinable } from '../common/types' +import { isNullOrUndefined } from '../common/utils' interface FilterFn { (collection: T[], fn: (value: T, index: number) => boolean): T[] diff --git a/src/lib/funSet.ts b/src/lib/funSet.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/get.ts b/src/lib/get.ts index eba2986..20d49bb 100644 --- a/src/lib/get.ts +++ b/src/lib/get.ts @@ -1,5 +1,5 @@ -import { Optional, UnwrapOptional as U } from '../types' -import { isNullOrUndefined, isObject } from '../utils' +import { Optional, UnwrapOptional as U } from '../common/types' +import { isNullOrUndefined, isObject } from '../common/utils' interface GetFn { (source: T, path: [K1]): T[K1] diff --git a/src/lib/map.ts b/src/lib/map.ts index 710d3a4..f9caa84 100644 --- a/src/lib/map.ts +++ b/src/lib/map.ts @@ -1,5 +1,5 @@ -import { Dictionary, Nullable, Optional, Undefinable } from '../types' -import { isNullOrUndefined } from '../utils' +import { Dictionary, Nullable, Optional, Undefinable } from '../common/types' +import { isNullOrUndefined } from '../common/utils' interface MapFn { ( diff --git a/src/lib/omit.ts b/src/lib/omit.ts index 9171008..adf5f6d 100644 --- a/src/lib/omit.ts +++ b/src/lib/omit.ts @@ -1,5 +1,5 @@ -import { Nullable, Optional, Undefinable, Without } from '../types' -import { isNullOrUndefined } from '../utils' +import { Nullable, Optional, Undefinable, Without } from '../common/types' +import { isNullOrUndefined } from '../common/utils' interface OmitFn { (source: T, keys: K[]): Without diff --git a/src/lib/pick.ts b/src/lib/pick.ts index 8086867..62d8b61 100644 --- a/src/lib/pick.ts +++ b/src/lib/pick.ts @@ -1,5 +1,5 @@ -import { isNullOrUndefined } from '../utils' -import { Nullable, Optional, Undefinable } from '../types' +import { isNullOrUndefined } from '../common/utils' +import { Nullable, Optional, Undefinable } from '../common/types' interface PickFn { (source: T, keys: K[]): Pick diff --git a/src/lib/set.ts b/src/lib/set.ts index 520eaa2..562733b 100644 --- a/src/lib/set.ts +++ b/src/lib/set.ts @@ -1,5 +1,5 @@ -import { Optional, UnwrapOptional as U } from '../types' -import { isObject, shallowCopy } from '../utils' +import { Optional, UnwrapOptional as U } from '../common/types' +import { isObject, shallowCopy } from '../common/utils' type Set1 = T extends any[] ? T @@ -33,7 +33,7 @@ type Set4< { [KK1 in K1]-?: Required< { [key in K1]: Set3, K2, K3, K4> } - >[KK1]; + >[KK1] } type Set5< @@ -49,7 +49,7 @@ type Set5< { [KK1 in K1]-?: Required< { [key in K1]: Set4, K2, K3, K4, K5> } - >[KK1]; + >[KK1] } interface SetFn { diff --git a/src/lib/unset.ts b/src/lib/unset.ts index ffcbeae..83150d9 100644 --- a/src/lib/unset.ts +++ b/src/lib/unset.ts @@ -3,22 +3,22 @@ import { Optional, Undefinable, UnwrapOptional as U, - Without -} from '../types' -import { isNullOrUndefined, shallowCopy } from '../utils' + Without, +} from '../common/types' +import { isNullOrUndefined, shallowCopy } from '../common/utils' type Unset1 = Without type Unset2 = { - [P in keyof T]: P extends K1 ? Unset1 : T[P]; + [P in keyof T]: P extends K1 ? Unset1 : T[P] } type Unset3 = { - [P in keyof T]: P extends K1 ? Unset2 : T[P]; + [P in keyof T]: P extends K1 ? Unset2 : T[P] } type Unset4 = { - [P in keyof T]: P extends K1 ? Unset3 : T[P]; + [P in keyof T]: P extends K1 ? Unset3 : T[P] } type Unset5 = { - [P in keyof T]: P extends K1 ? Unset4 : T[P]; + [P in keyof T]: P extends K1 ? Unset4 : T[P] } interface UnsetFn { diff --git a/src/lib/update.ts b/src/lib/update.ts index 68e2a89..37f43a6 100644 --- a/src/lib/update.ts +++ b/src/lib/update.ts @@ -1,5 +1,5 @@ -import { Optional, UnwrapOptional as U } from '../types' -import { isObject, shallowCopy } from '../utils' +import { Optional, UnwrapOptional as U } from '../common/types' +import { isObject, shallowCopy } from '../common/utils' type Update1 = T extends any[] ? T @@ -20,9 +20,7 @@ type Update3< ? T : Pick> & { - [KK1 in K1]-?: Required< - { [key in K1]: Update2, K2, K3> } - >[KK1]; + [KK1 in K1]-?: Required<{ [key in K1]: Update2, K2, K3> }>[KK1] } type Update4< @@ -37,7 +35,7 @@ type Update4< { [KK1 in K1]-?: Required< { [key in K1]: Update3, K2, K3, K4> } - >[KK1]; + >[KK1] } type Update5< @@ -53,7 +51,7 @@ type Update5< { [KK1 in K1]-?: Required< { [key in K1]: Update4, K2, K3, K4, K5> } - >[KK1]; + >[KK1] } interface UpdateFn { diff --git a/src/test/filter.test.ts b/src/test/filter.test.ts index 4e8b68f..e1cd41e 100644 --- a/src/test/filter.test.ts +++ b/src/test/filter.test.ts @@ -1,5 +1,5 @@ import { filter } from '../lib/filter' -import { Dictionary, Optional } from '../types' +import { Dictionary, Optional } from '../common/types' import { idFn } from './common' describe('filter', () => { diff --git a/src/test/get.test.ts b/src/test/get.test.ts index bf00dad..facba02 100644 --- a/src/test/get.test.ts +++ b/src/test/get.test.ts @@ -1,6 +1,6 @@ import { get } from '../lib/get' import { Dict, State, User } from './common' -import { Optional } from '../types' +import { Optional } from '../common/types' describe('get', () => { let state: State diff --git a/src/integration.test.ts b/src/test/integration.test.ts similarity index 73% rename from src/integration.test.ts rename to src/test/integration.test.ts index 0e990a2..7c30c62 100644 --- a/src/integration.test.ts +++ b/src/test/integration.test.ts @@ -1,6 +1,6 @@ -import { map } from './lib/map' -import { update } from './lib/update' -import { filter } from './lib/filter' +import { map } from '../lib/map' +import { update } from '../lib/update' +import { filter } from '../lib/filter' interface User { name: string @@ -31,7 +31,10 @@ describe('integration', () => { }) expect(newState).toEqual({ - users: [{ name: 'Aaaa', age: 18 }, { name: 'Bbbb', age: 18 }], + users: [ + { name: 'Aaaa', age: 18 }, + { name: 'Bbbb', age: 18 }, + ], }) }) }) diff --git a/src/test/map.test.ts b/src/test/map.test.ts index 1ce079f..0a9bcf5 100644 --- a/src/test/map.test.ts +++ b/src/test/map.test.ts @@ -1,5 +1,5 @@ import { map } from '../lib/map' -import { Dictionary, Optional } from '../types' +import { Dictionary, Optional } from '../common/types' import { idFn } from './common' describe('map', () => { diff --git a/src/test/omit.test.ts b/src/test/omit.test.ts index 675cd14..8566f5b 100644 --- a/src/test/omit.test.ts +++ b/src/test/omit.test.ts @@ -1,5 +1,5 @@ import { omit } from '../lib/omit' -import { Dictionary, Optional } from '../types' +import { Dictionary, Optional } from '../common/types' import { State } from './common' describe('omit', () => { diff --git a/src/test/pick.test.ts b/src/test/pick.test.ts index 7e58305..0f2e196 100644 --- a/src/test/pick.test.ts +++ b/src/test/pick.test.ts @@ -1,5 +1,5 @@ import { pick } from '../lib/pick' -import { Dictionary, Optional } from '../types' +import { Dictionary, Optional } from '../common/types' import { State } from './common' describe('pick', () => { diff --git a/src/test/set.test.ts b/src/test/set.test.ts index ade45df..f8cd62b 100644 --- a/src/test/set.test.ts +++ b/src/test/set.test.ts @@ -1,6 +1,6 @@ import { set } from '../lib/set' import { State } from './common' -import { Dictionary } from '../types' +import { Dictionary } from '../common/types' describe('set', () => { let state: State From 92a2ddaec00f6c99b8cb666ea86eb2c81bda87c3 Mon Sep 17 00:00:00 2001 From: Emanuel Tesar Date: Sat, 18 Jan 2020 13:58:09 +0100 Subject: [PATCH 2/5] Update deps, improve typedoc --- docs/globals.html | 199 +++ docs/index.html | 199 +++ docs/interfaces/dict.html | 27 + docs/interfaces/dictionary.html | 2539 +++++++++++++++++++++++++++++++ docs/interfaces/state.html | 27 + docs/interfaces/user.html | 27 + package.json | 2 +- 7 files changed, 3019 insertions(+), 1 deletion(-) create mode 100644 docs/interfaces/dictionary.html diff --git a/docs/globals.html b/docs/globals.html index a2d408c..5ef61d3 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -2380,12 +2380,30 @@
  • Dict
  • +
  • + Dictionary +
  • State
  • User
  • +
  • + Nullable +
  • +
  • + Optional +
  • +
  • + Undefinable +
  • +
  • + UnwrapOptional +
  • +
  • + Without +
  • exist
  • @@ -2416,6 +2434,15 @@
  • idFn
  • +
  • + isNullOrUndefined +
  • +
  • + isObject +
  • +
  • + shallowCopy +
@@ -2537,10 +2564,21 @@

Index

Interfaces

+
+

Type aliases

+ +

Variables

+
+

Type aliases

+
+ +

Nullable

+
Nullable<T>: T | null
+ +

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+ +

Optional

+
Optional<T>: T | null | undefined
+ +

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+ +

Undefinable

+
Undefinable<T>: T | undefined
+ +

Type parameters

+
    +
  • +

    T

    +
  • +
+
+
+ +

UnwrapOptional

+
UnwrapOptional<T>: Exclude<T, null | undefined>
+ +

Type parameters

+ +
+
+ +

Without

+
Without<T, K>: Without<T, K>
+ +

Type parameters

+
    +
  • +

    T

    +
  • +
  • +

    K

    +
  • +
+
+

Variables

@@ -2887,6 +3014,78 @@

Returns any

+
+ +

isNullOrUndefined

+
    +
  • isNullOrUndefined(arg: any): boolean
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      arg: any
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

isObject

+
    +
  • isObject(value: any): boolean
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      value: any
      +
    • +
    +

    Returns boolean

    +
  • +
+
+
+ +

shallowCopy

+
    +
  • shallowCopy(value: any, defaultValue?: any): any
  • +
+
    +
  • + +

    Parameters

    +
      +
    • +
      value: any
      +
    • +
    • +
      Optional defaultValue: any
      +
    • +
    +

    Returns any

    +
  • +
+