v1.0 with SW PWA enabled

This commit is contained in:
Blomios
2026-01-01 17:40:53 +01:00
parent 1c0e22aac1
commit 3c8bebb2ad
29775 changed files with 2197201 additions and 119080 deletions

File diff suppressed because one or more lines are too long

View File

@ -517,9 +517,7 @@ function ObjectTypeAnnotation(node) {
if (props.length) {
this.newline();
this.space();
this.printJoin(props, true, true, undefined, undefined, function addNewlines(leading) {
if (leading && !props[0]) return 1;
}, () => {
this.printJoin(props, true, true, undefined, undefined, () => {
if (props.length !== 1 || node.inexact) {
this.tokenChar(44);
this.space();

File diff suppressed because one or more lines are too long

View File

@ -36,7 +36,7 @@ function _parameters(parameters, endToken) {
for (let i = 0; i < paramLength; i++) {
this._param(parameters[i]);
if (trailingComma || i < paramLength - 1) {
this.token(",", null, i);
this.token(",", undefined, i);
this.space();
}
}
@ -77,7 +77,7 @@ function _methodHead(node) {
if (node.optional) {
this.tokenChar(63);
}
this._params(node, node.computed && node.key.type !== "StringLiteral" ? undefined : node.key, undefined);
this._params(node, node.computed && node.key.type !== "StringLiteral" ? undefined : node.key);
}
function _predicate(node, noLineTerminatorAfter) {
if (node.predicate) {

File diff suppressed because one or more lines are too long

View File

@ -93,11 +93,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
return;
}
const occurrenceCount = hasPreviousBrace ? 1 : 0;
this.token("{", null, occurrenceCount);
this.token("{", undefined, occurrenceCount);
this.space();
this.printList(attributes || assertions, this.shouldPrintTrailingComma("}"));
this.space();
this.token("}", null, occurrenceCount);
this.token("}", undefined, occurrenceCount);
}
function ExportAllDeclaration(node) {
var _node$attributes, _node$assertions;

File diff suppressed because one or more lines are too long

View File

@ -203,9 +203,7 @@ function SwitchStatement(node) {
this.tokenChar(41);
this.space();
this.tokenChar(123);
this.printSequence(node.cases, true, undefined, function addNewlines(leading, cas) {
if (!leading && node.cases[node.cases.length - 1] === cas) return -1;
});
this.printSequence(node.cases, true);
this.rightBrace(node);
}
function SwitchCase(node) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -354,7 +354,7 @@ function tsPrintUnionOrIntersectionType(printer, node, sep) {
}
printer.printJoin(node.types, undefined, undefined, function (i) {
this.space();
this.token(sep, null, i + hasLeadingToken);
this.token(sep, undefined, i + hasLeadingToken);
this.space();
});
}
@ -714,6 +714,7 @@ function printModifiersList(printer, node, modifiers) {
modifiersSet.delete(tok.value);
return modifiersSet.size === 0;
}
return false;
});
for (const modifier of modifiersSet) {
printer.word(modifier);

File diff suppressed because one or more lines are too long