This commit is contained in:
Harvey Zack committed 2018-10-12 16:58:58 +08:00
1 parent b74ff6052c
commit 495782f5c6
11 files changed
+504 -7

No files matched your search

+10
View File
@@ -46,4 +46,14 @@ export default function verification(option) {
`'lang' option require 'string' type, but got '${typeof option.lang}'.`
);
errorHandle(
typeof option.type === 'string',
`'type' option require 'string' type, but got '${typeof option.type}'.`
);
errorHandle(
typeof option.mimeCodec === 'string',
`'mimeCodec' option require 'string' type, but got '${typeof option.mimeCodec}'.`
);
}