This commit is contained in:
crusader 2018-06-04 18:41:23 +09:00
parent afa758addd
commit 1de1af1fdb
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@loafer/ng-rpc", "name": "@loafer/ng-rpc",
"version": "0.0.2", "version": "0.0.3",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.loafle.net/loafer/ng.git" "url": "https://git.loafle.net/loafer/ng.git"

View File

@ -151,6 +151,9 @@ export class RPCSubscribeService {
case 'Boolean': case 'Boolean':
results.push(Boolean(param)); results.push(Boolean(param));
break; break;
case 'Date':
results.push(new Date(param));
break;
case 'Function': case 'Function':
throw new SubscriberParameterError(`Function type [${indexI}] is not allowed`); throw new SubscriberParameterError(`Function type [${indexI}] is not allowed`);
default: default: