* Move @polkadot/x-{fetch,textdecoder,textencoder,ws}
* Adjust copyrights
* Fix jest aliassing
* tsconfig resolution
9 lines
286 B
TypeScript
9 lines
286 B
TypeScript
// Copyright 2017-2020 @polkadot/x-textencoder authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { TextDecoder as NodeTextDecoder } from 'util';
|
|
|
|
export default typeof TextDecoder === 'undefined'
|
|
? NodeTextDecoder as unknown as typeof TextDecoder
|
|
: TextDecoder;
|