ng-typeview
Advanced tools
Comparing version 0.0.39 to 0.0.40
@@ -235,5 +235,9 @@ "use strict"; | ||
attribs['on'] : attribs['ng-switch']; | ||
var extraSrc = "\n const assertUnreachable= (x:never): never => {\n throw new Error(\"Didn't expect to get here \" + x);\n };"; | ||
var strictDefault = "\n default:\n assertUnreachable(" + expr + ");"; | ||
var isStrict = attribs.hasOwnProperty('typeview-switch-exhaustive') || | ||
attribs.hasOwnProperty('data-typeview-switch-exhaustive'); | ||
return { | ||
source: "switch (" + codegenHelpers.addScopeAccessors(expr) + ") {", | ||
closeSource: function () { return "}"; } | ||
source: (isStrict ? extraSrc : "") + "switch (" + codegenHelpers.addScopeAccessors(expr) + ") {", | ||
closeSource: function () { return (isStrict ? strictDefault : '') + "}"; } | ||
}; | ||
@@ -240,0 +244,0 @@ } |
{ | ||
"name": "ng-typeview", | ||
"version": "0.0.39", | ||
"version": "0.0.40", | ||
"description": "library to enable type-checking of angular views when using typescript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
208068
2685