Bladeren bron

Fix return type for TypeScript

pull/754/head
urain39 6 jaren geleden
bovenliggende
commit
377a1abd7b
3 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. +1
    -1
      mustache.js
  2. +1
    -1
      mustache.min.js
  3. +1
    -1
      mustache.mjs

+ 1
- 1
mustache.js Bestand weergeven

@@ -657,7 +657,7 @@
Writer.prototype.escapedValue = function escapedValue (token, context) { Writer.prototype.escapedValue = function escapedValue (token, context) {
var value = context.lookup(token[1]); var value = context.lookup(token[1]);
if (value != null) if (value != null)
return typeof value === 'number' ? value : mustache.escape(value);
return typeof value === 'number' ? String(value) : mustache.escape(value);
}; };


Writer.prototype.rawValue = function rawValue (token) { Writer.prototype.rawValue = function rawValue (token) {


+ 1
- 1
mustache.min.js
Diff onderdrukt omdat het te groot bestand
Bestand weergeven


+ 1
- 1
mustache.mjs Bestand weergeven

@@ -650,7 +650,7 @@ Writer.prototype.unescapedValue = function unescapedValue (token, context) {
Writer.prototype.escapedValue = function escapedValue (token, context) { Writer.prototype.escapedValue = function escapedValue (token, context) {
var value = context.lookup(token[1]); var value = context.lookup(token[1]);
if (value != null) if (value != null)
return typeof value === 'number' ? value : mustache.escape(value);
return typeof value === 'number' ? String(value) : mustache.escape(value);
}; };


Writer.prototype.rawValue = function rawValue (token) { Writer.prototype.rawValue = function rawValue (token) {


Laden…
Annuleren
Opslaan