json-string-mapper
Version:
transform json string to key value pair map
28 lines (26 loc) • 886 B
JavaScript
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { assertInterpolationSymbols } from './assertions';
var InterpolationConfig = (function () {
function InterpolationConfig(start, end) {
this.start = start;
this.end = end;
}
InterpolationConfig.fromArray = function (markers) {
if (!markers) {
return DEFAULT_INTERPOLATION_CONFIG;
}
assertInterpolationSymbols('interpolation', markers);
return new InterpolationConfig(markers[0], markers[1]);
};
;
return InterpolationConfig;
}());
export { InterpolationConfig };
export var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig('{{', '}}');
//# sourceMappingURL=interpolation-config.js.map