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 e84882e076
commit 17fbfabff5
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';