[CI Skip] 0.32.21

This commit is contained in:
Travis CI
2018-11-14 13:21:46 +00:00
parent 75c09a9fcf
commit ad9b46a5b9
155 changed files with 537 additions and 537 deletions
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **arrayFilter**(array: *`Array`<`any`>*, allowNulls?: *`boolean`*): `Array`<`any`>
*Defined in [array/filter.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/array/filter.ts#L24)*
*Defined in [array/filter.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/array/filter.ts#L24)*
*__name__*: arrayFilter
@@ -29,7 +29,7 @@ arrayFilter([0, void 0, true, null, false, ''], false); // [0, true, false, '']
**Parameters:**
| Param | Type | Default value |
| Name | Type | Default value |
| ------ | ------ | ------ |
| array | `Array`<`any`> | - |
| `Default value` allowNulls | `boolean` | true |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **assert**(test: *`any`*, message: * `string` &#124; `MessageFn`*, code?: *`number`*, data?: *`any`*): `boolean`
*Defined in [assert.ts:27](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/assert.ts#L27)*
*Defined in [assert.ts:27](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/assert.ts#L27)*
*__name__*: assert
@@ -30,7 +30,7 @@ assert(false, () => 'message'); // ExtError with 'message'
**Parameters:**
| Param | Type | Default value |
| Name | Type | Default value |
| ------ | ------ | ------ |
| test | `any` | - |
| message | `string` &#124; `MessageFn`| - |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **bnToBn**(value?: * `BN` &#124; `number`*): `BN`
*Defined in [bn/toBn.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/bn/toBn.ts#L24)*
*Defined in [bn/toBn.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/bn/toBn.ts#L24)*
*__name__*: bnToBn
@@ -30,7 +30,7 @@ bnToBn(new BN(0x1234)); // => BN(0x1234)
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| `Optional` value | `BN` &#124; `number`|
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **bnToHex**(value?: * `BN` &#124; `number`*, bitLength?: *`number`*): `string`
*Defined in [bn/toHex.ts:28](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/bn/toHex.ts#L28)*
*Defined in [bn/toHex.ts:28](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/bn/toHex.ts#L28)*
*__name__*: bnToHex
@@ -29,7 +29,7 @@ bnToHex(new BN(0x123456)); // => '0x123456'
**Parameters:**
| Param | Type | Default value |
| Name | Type | Default value |
| ------ | ------ | ------ |
| `Optional` value | `BN` &#124; `number`| - |
| `Default value` bitLength | `number` | -1 |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **bnToU8a**(value: * `BN` &#124; `number`*, bitLength: *`number`*, isLe: *`boolean`*): `Uint8Array`
*Defined in [bn/toU8a.ts:26](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/bn/toU8a.ts#L26)*
*Defined in [bn/toU8a.ts:26](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/bn/toU8a.ts#L26)*
*__name__*: bnToU8a
@@ -28,7 +28,7 @@ bnToU8a(new BN(0x1234)); // => [0x12, 0x34]
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `BN` &#124; `number`|
| bitLength | `number` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **bufferToU8a**(buffer?: * `Buffer` &#124; `number`[]*): `Uint8Array`
*Defined in [buffer/toU8a.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/buffer/toU8a.ts#L20)*
*Defined in [buffer/toU8a.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/buffer/toU8a.ts#L20)*
*__name__*: bufferToU8a
@@ -28,7 +28,7 @@ bufferToU8a(Buffer.from([1, 2, 3]));
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| `Optional` buffer | `Buffer` &#124; `number`[]|
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **hexAddPrefix**(value: * `string` &#124; `null` &#124; `undefined`*): `string`
*Defined in [hex/addPrefix.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/hex/addPrefix.ts#L22)*
*Defined in [hex/addPrefix.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/hex/addPrefix.ts#L22)*
*__name__*: hexAddPrefix
@@ -28,7 +28,7 @@ console.log('With prefix', hexAddPrefix('0a0b12')); // => 0x0a0b12
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `string` &#124; `null` &#124; `undefined`|
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **hexFixLength**(value: *`string`*, bitLength?: *`number`*, withPadding?: *`boolean`*): `string`
*Defined in [hex/fixLength.ts:25](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/hex/fixLength.ts#L25)*
*Defined in [hex/fixLength.ts:25](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/hex/fixLength.ts#L25)*
*__name__*: hexFixLength
@@ -30,7 +30,7 @@ console.log('fixed', hexFixLength('0x0012', 8)); // => 0x12
**Parameters:**
| Param | Type | Default value |
| Name | Type | Default value |
| ------ | ------ | ------ |
| value | `string` | - |
| `Default value` bitLength | `number` | -1 |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **hexHasPrefix**(value: * `string` &#124; `null` &#124; `undefined`*): `boolean`
*Defined in [hex/hasPrefix.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/hex/hasPrefix.ts#L22)*
*Defined in [hex/hasPrefix.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/hex/hasPrefix.ts#L22)*
*__name__*: hexHasPrefix
@@ -28,7 +28,7 @@ console.log('has prefix', hexHasPrefix('0x1234')); // => true
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `string` &#124; `null` &#124; `undefined`|
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **hexStripPrefix**(value: * `string` &#124; `null` &#124; `undefined`*): `string`
*Defined in [hex/stripPrefix.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/hex/stripPrefix.ts#L24)*
*Defined in [hex/stripPrefix.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/hex/stripPrefix.ts#L24)*
*__name__*: hexStripPrefix
@@ -28,7 +28,7 @@ console.log('stripped', hexStripPrefix('0x1234')); // => 1234
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `string` &#124; `null` &#124; `undefined`|
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **hexToBn**(_value?: * `undefined` &#124; `string`*, isLe?: *`boolean`*): `BN`
*Defined in [hex/toBn.ts:30](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/hex/toBn.ts#L30)*
*Defined in [hex/toBn.ts:30](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/hex/toBn.ts#L30)*
*__name__*: hexToBn
@@ -28,7 +28,7 @@ hexToBn('0x123480001f'); // => BN(0x123480001f)
**Parameters:**
| Param | Type | Default value |
| Name | Type | Default value |
| ------ | ------ | ------ |
| `Optional` _value | `undefined` &#124; `string`| - |
| `Default value` isLe | `boolean` | false |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **hexToNumber**(value?: * `undefined` &#124; `string`*): `number`
*Defined in [hex/toNumber.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/hex/toNumber.ts#L22)*
*Defined in [hex/toNumber.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/hex/toNumber.ts#L22)*
*__name__*: hexToNumber
@@ -28,7 +28,7 @@ hexToNumber('0x1234'); // => 0x1234
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| `Optional` value | `undefined` &#124; `string`|
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **hexToU8a**(_value?: * `string` &#124; `null`*, bitLength?: *`number`*): `Uint8Array`
*Defined in [hex/toU8a.ts:25](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/hex/toU8a.ts#L25)*
*Defined in [hex/toU8a.ts:25](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/hex/toU8a.ts#L25)*
*__name__*: hexToU8a
@@ -29,7 +29,7 @@ hexToU8a('0x80001f', 32); // Uint8Array([0x00, 0x80, 0x00, 0x1f])
**Parameters:**
| Param | Type | Default value |
| Name | Type | Default value |
| ------ | ------ | ------ |
| `Optional` _value | `string` &#124; `null`| - |
| `Default value` bitLength | `number` | -1 |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isBn**(value: *`any`*): `boolean`
*Defined in [is/bn.ts:23](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/bn.ts#L23)*
*Defined in [is/bn.ts:23](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/bn.ts#L23)*
*__name__*: isBn
@@ -29,7 +29,7 @@ console.log('isBn', isBn(new BN(1))); // => true
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `any` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isBoolean**(value: *`any`*): `boolean`
*Defined in [is/boolean.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/boolean.ts#L20)*
*Defined in [is/boolean.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/boolean.ts#L20)*
*__name__*: isBoolean
@@ -28,7 +28,7 @@ isBoolean(false); // => true
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `any` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isBuffer**(value: *`any`*): `boolean`
*Defined in [is/buffer.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/buffer.ts#L22)*
*Defined in [is/buffer.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/buffer.ts#L22)*
*__name__*: isBuffer
@@ -28,7 +28,7 @@ console.log('isBuffer', isBuffer(Buffer.from([]))); // => true
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `any` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isError**(value: *`any`*): `boolean`
*Defined in [is/error.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/error.ts#L22)*
*Defined in [is/error.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/error.ts#L22)*
*__name__*: isError
@@ -28,7 +28,7 @@ console.log('isError', isError(new Error('message'))); // => true
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `any` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isFunction**(value: *`any`*): `boolean`
*Defined in [is/function.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/function.ts#L20)*
*Defined in [is/function.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/function.ts#L20)*
*__name__*: isFunction
@@ -28,7 +28,7 @@ isFunction(() => false); // => true
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `any` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isHex**(value: *`any`*, bitLength?: *`number`*, ignoreLength?: *`boolean`*): `boolean`
*Defined in [is/hex.ts:25](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/hex.ts#L25)*
*Defined in [is/hex.ts:25](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/hex.ts#L25)*
*__name__*: isHex
@@ -29,7 +29,7 @@ isHex('0x1234', 8); // => false
**Parameters:**
| Param | Type | Default value |
| Name | Type | Default value |
| ------ | ------ | ------ |
| value | `any` | - |
| `Default value` bitLength | `number` | -1 |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isInstanceOf**(value: *`any`*, clazz: *`any`*): `boolean`
*Defined in [is/instanceOf.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/instanceOf.ts#L20)*
*Defined in [is/instanceOf.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/instanceOf.ts#L20)*
*__name__*: isInstanceOf
@@ -28,7 +28,7 @@ console.log('isInstanceOf', isInstanceOf(new Array(0), Array)); // => true
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `any` |
| clazz | `any` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isIp**(value: *`string`*, type?: *`IpTypes`*): `boolean`
*Defined in [is/ip.ts:27](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/ip.ts#L27)*
*Defined in [is/ip.ts:27](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/ip.ts#L27)*
*__name__*: isIp
@@ -31,7 +31,7 @@ isIp('1:2:3:4:5:6:7:8', 'v4'); // => false
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `string` |
| `Optional` type | `IpTypes` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isNull**(value: *`any`*): `boolean`
*Defined in [is/null.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/null.ts#L20)*
*Defined in [is/null.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/null.ts#L20)*
*__name__*: isNull
@@ -28,7 +28,7 @@ console.log('isNull', isNull(null)); // => true
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `any` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isNumber**(value: *`any`*): `boolean`
*Defined in [is/number.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/number.ts#L20)*
*Defined in [is/number.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/number.ts#L20)*
*__name__*: isNumber
@@ -28,7 +28,7 @@ console.log('isNumber', isNumber(1234)); // => true
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `any` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isObject**(value: *`any`*): `boolean`
*Defined in [is/object.ts:25](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/object.ts#L25)*
*Defined in [is/object.ts:25](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/object.ts#L25)*
*__name__*: isObject
@@ -29,7 +29,7 @@ isObject('something'); // => false
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `any` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isObservable**(value: *`any`*): `boolean`
*Defined in [is/observable.ts:27](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/observable.ts#L27)*
*Defined in [is/observable.ts:27](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/observable.ts#L27)*
*__name__*: isBObservable
@@ -28,7 +28,7 @@ console.log('isObservable', isObservable(...));
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `any` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isString**(value: *`any`*): `boolean`
*Defined in [is/string.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/string.ts#L20)*
*Defined in [is/string.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/string.ts#L20)*
*__name__*: isString
@@ -28,7 +28,7 @@ console.log('isString', isString('test')); // => true
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `any` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isU8a**(value: *`any`*): `boolean`
*Defined in [is/u8a.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/u8a.ts#L22)*
*Defined in [is/u8a.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/u8a.ts#L22)*
*__name__*: isU8a
@@ -28,7 +28,7 @@ console.log('isU8a', isU8a([])); // => false
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `any` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **isUndefined**(value: *`any`*): `boolean`
*Defined in [is/undefined.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/is/undefined.ts#L20)*
*Defined in [is/undefined.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/is/undefined.ts#L20)*
*__name__*: isUndefined
@@ -28,7 +28,7 @@ console.log('isUndefined', isUndefined(void(0))); // => true
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `any` |
+4 -4
View File
@@ -8,11 +8,11 @@
▸ **format**(value: *`any`*): `any`
*Defined in [logger.ts:36](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/logger.ts#L36)*
*Defined in [logger.ts:36](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/logger.ts#L36)*
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `any` |
@@ -25,7 +25,7 @@ ___
▸ **logger**(_type: *`string`*): `Logger`
*Defined in [logger.ts:105](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/logger.ts#L105)*
*Defined in [logger.ts:105](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/logger.ts#L105)*
*__name__*: Logger
@@ -45,7 +45,7 @@ l.log('blah'); // <date> TEST: blah
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| _type | `string` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **numberToHex**(value?: * `undefined` &#124; `number`*, bitLength?: *`number`*): `string`
*Defined in [number/toHex.ts:25](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/number/toHex.ts#L25)*
*Defined in [number/toHex.ts:25](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/number/toHex.ts#L25)*
*__name__*: numberToHex
@@ -29,7 +29,7 @@ numberToHex(0x1234, 32); // => 0x00001234
**Parameters:**
| Param | Type | Default value |
| Name | Type | Default value |
| ------ | ------ | ------ |
| `Optional` value | `undefined` &#124; `number`| - |
| `Default value` bitLength | `number` | -1 |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **numberToU8a**(value?: * `undefined` &#124; `number`*, bitLength?: *`number`*): `Uint8Array`
*Defined in [number/toU8a.ts:23](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/number/toU8a.ts#L23)*
*Defined in [number/toU8a.ts:23](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/number/toU8a.ts#L23)*
*__name__*: numberToU8a
@@ -28,7 +28,7 @@ numberToU8a(0x1234); // => [0x12, 0x34]
**Parameters:**
| Param | Type | Default value |
| Name | Type | Default value |
| ------ | ------ | ------ |
| `Optional` value | `undefined` &#124; `number`| - |
| `Default value` bitLength | `number` | -1 |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **promisify**(self: *`any`*, fn: *`Function`*, ...params: *`Array`<`any`>*): `Promise`<`any`>
*Defined in [promisify.ts:21](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/promisify.ts#L21)*
*Defined in [promisify.ts:21](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/promisify.ts#L21)*
*__name__*: promisify
@@ -29,7 +29,7 @@ await promisify(null, (cb) => cb(new Error('error!'))); // rejects with `error!`
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| self | `any` |
| fn | `Function` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **stringLowerFirst**(_value: *`string`*): `string`
*Defined in [string/lowerFirst.ts:23](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/string/lowerFirst.ts#L23)*
*Defined in [string/lowerFirst.ts:23](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/string/lowerFirst.ts#L23)*
*__name__*: stringLowerFirst
@@ -28,7 +28,7 @@ stringLowerFirst('ABC'); // => 'aBC'
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| _value | `string` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **stringShorten**(_value: *`any`*, prefixLength?: *`number`*): `string`
*Defined in [string/shorten.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/string/shorten.ts#L20)*
*Defined in [string/shorten.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/string/shorten.ts#L20)*
*__name__*: stringShorten
@@ -28,7 +28,7 @@ stringShorten('1234567890', 2); // => 12..90
**Parameters:**
| Param | Type | Default value |
| Name | Type | Default value |
| ------ | ------ | ------ |
| _value | `any` | - |
| `Default value` prefixLength | `number` | 6 |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **stringToU8a**(value?: * `undefined` &#124; `string`*): `Uint8Array`
*Defined in [string/toU8a.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/string/toU8a.ts#L24)*
*Defined in [string/toU8a.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/string/toU8a.ts#L24)*
*__name__*: stringToU8a
@@ -28,7 +28,7 @@ stringToU8a('hello'); // [0x68, 0x65, 0x6c, 0x6c, 0x6f]
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| `Optional` value | `undefined` &#124; `string`|
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **stringUpperFirst**(_value: *`string`*): `string`
*Defined in [string/upperFirst.ts:23](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/string/upperFirst.ts#L23)*
*Defined in [string/upperFirst.ts:23](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/string/upperFirst.ts#L23)*
*__name__*: stringUpperFirst
@@ -28,7 +28,7 @@ stringUpperFirst('abc'); // => 'Abc'
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| _value | `string` |
+2 -2
View File
@@ -8,11 +8,11 @@
▸ **syncify**(promise: *`Promise`<`any`>*): `any`
*Defined in [syncify.ts:11](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/syncify.ts#L11)*
*Defined in [syncify.ts:11](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/syncify.ts#L11)*
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| promise | `Promise`<`any`> |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **u8aConcat**(..._list: *`Array`< `Uint8Array` &#124; `string`>*): `Uint8Array`
*Defined in [u8a/concat.ts:25](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/u8a/concat.ts#L25)*
*Defined in [u8a/concat.ts:25](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/u8a/concat.ts#L25)*
*__name__*: u8aConcat
@@ -31,7 +31,7 @@ u8aConcat(
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| `Rest` _list | `Array`< `Uint8Array` &#124; `string`> |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **u8aFixLength**(value: *`Uint8Array`*, bitLength?: *`number`*, atStart?: *`boolean`*): `Uint8Array`
*Defined in [u8a/fixLength.ts:22](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/u8a/fixLength.ts#L22)*
*Defined in [u8a/fixLength.ts:22](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/u8a/fixLength.ts#L22)*
*__name__*: u8aFixLength
@@ -30,7 +30,7 @@ u8aFixLength('0x1234', 8) // => 0x12
**Parameters:**
| Param | Type | Default value |
| Name | Type | Default value |
| ------ | ------ | ------ |
| value | `Uint8Array` | - |
| `Default value` bitLength | `number` | -1 |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **u8aToBn**(value: *`Uint8Array`*, isLe: *`boolean`*): `BN`
*Defined in [u8a/toBn.ts:25](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/u8a/toBn.ts#L25)*
*Defined in [u8a/toBn.ts:25](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/u8a/toBn.ts#L25)*
*__name__*: u8aToBn
@@ -28,7 +28,7 @@ u8aToHex(new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0xf])); // 0x68656c0f
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| value | `Uint8Array` |
| isLe | `boolean` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **u8aToBuffer**(value?: *`Uint8Array`*): `Buffer`
*Defined in [u8a/toBuffer.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/u8a/toBuffer.ts#L20)*
*Defined in [u8a/toBuffer.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/u8a/toBuffer.ts#L20)*
*__name__*: u8aToBuffer
@@ -28,7 +28,7 @@ console.log('Buffer', u8aToBuffer('0x123480001f'));
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| `Optional` value | `Uint8Array` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **u8aToHex**(value?: * `Uint8Array` &#124; `null`*, bitLength?: *`number`*, isPrefixed?: *`boolean`*): `string`
*Defined in [u8a/toHex.ts:20](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/u8a/toHex.ts#L20)*
*Defined in [u8a/toHex.ts:20](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/u8a/toHex.ts#L20)*
*__name__*: u8aToHex
@@ -28,7 +28,7 @@ u8aToHex(new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0xf])); // 0x68656c0f
**Parameters:**
| Param | Type | Default value |
| Name | Type | Default value |
| ------ | ------ | ------ |
| `Optional` value | `Uint8Array` &#124; `null`| - |
| `Default value` bitLength | `number` | -1 |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **u8aToString**(value?: *`Uint8Array`*): `string`
*Defined in [u8a/toString.ts:24](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/u8a/toString.ts#L24)*
*Defined in [u8a/toString.ts:24](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/u8a/toString.ts#L24)*
*__name__*: u8aToString
@@ -28,7 +28,7 @@ u8aToString(new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0x6f])); // hello
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| `Optional` value | `Uint8Array` |
+2 -2
View File
@@ -8,7 +8,7 @@
▸ **u8aToU8a**(value?: * `Array`<`number`> &#124; `Buffer` &#124; `Uint8Array` &#124; `string` &#124; `null`*): `Uint8Array`
*Defined in [u8a/toU8a.ts:28](https://github.com/polkadot-js/common/blob/dc07e26/packages/util/src/u8a/toU8a.ts#L28)*
*Defined in [u8a/toU8a.ts:28](https://github.com/polkadot-js/common/blob/75c09a9/packages/util/src/u8a/toU8a.ts#L28)*
*__name__*: u8aToU8a
@@ -29,7 +29,7 @@ u8aToU8a(0x1234); // => Uint8Array([0x12, 0x34])
**Parameters:**
| Param | Type |
| Name | Type |
| ------ | ------ |
| `Optional` value | `Array`<`number`> &#124; `Buffer` &#124; `Uint8Array` &#124; `string` &#124; `null`|