feat: use module export

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-04-01 17:53:12 +08:00
parent ee9ae408ec
commit 24fe3b9026
2 changed files with 3 additions and 4 deletions

View File

@ -21,8 +21,8 @@
'use strict';
var punycode = require('punycode');
// @ts-ignore
import * as punycode from 'punycode'
var util = {
isString: function (arg) {
return typeof (arg) === 'string';