}
if (options.title == null) {
options.title = '';
+ } else if (typeof options.title !== 'string') {
+ throw new TypeError('Title need to be string');
}
if (options.defaultPath == null) {
options.defaultPath = '';
+ } else if (typeof options.defaultPath !== 'string') {
+ throw new TypeError('Default path need to be string');
}
if (options.filters == null) {
options.filters = [];
}
if (options.title == null) {
options.title = '';
+ } else if (typeof options.title !== 'string') {
+ throw new TypeError('Title need to be string');
}
if (options.defaultPath == null) {
options.defaultPath = '';
+ } else if (typeof options.defaultPath !== 'string') {
+ throw new TypeError('Default path need to be string');
}
if (options.filters == null) {
options.filters = [];
}
if (options.title == null) {
options.title = '';
+ } else if (typeof options.title !== 'string') {
+ throw new TypeError('Title need to be string');
}
if (options.message == null) {
options.message = '';
+ } else if (typeof options.message !== 'string') {
+ throw new TypeError('Message need to be string');
}
if (options.detail == null) {
options.detail = '';
+ } else if (typeof options.detail !== 'string') {
+ throw new TypeError('Detail need to be string');
}
if (options.icon == null) {
options.icon = null;