TypeScript conversion (#142)
* Auto-conversion * Cleanup type conversion errors * Inching closer, resolution sorted * Additional cleanups * TS, TS everywhere * Minor version for TS release * Last roundups
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// Copyright 2017-2018 @polkadot/util authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the ISC license. See the LICENSE file for details.
|
||||
|
||||
if (typeof TextEncoder === 'undefined') {
|
||||
// @ts-ignore
|
||||
global.TextEncoder = require('util').TextEncoder;
|
||||
}
|
||||
Reference in New Issue
Block a user